Harden contract validation, STARTTLS edge cases, and rule output
This commit is contained in:
parent
a925e4f162
commit
fa212f0fae
9 changed files with 104 additions and 39 deletions
|
|
@ -68,7 +68,7 @@ func FetchChain(ctx context.Context, host string, port uint16, starttls string,
|
|||
|
||||
tlsConn := tls.Client(conn, &tls.Config{
|
||||
ServerName: host,
|
||||
InsecureSkipVerify: true,
|
||||
InsecureSkipVerify: true, // #nosec G402 -- intentional: caller receives the chain even when PKIX rejects it
|
||||
})
|
||||
if err := tlsConn.HandshakeContext(dialCtx); err != nil {
|
||||
return nil, fmt.Errorf("tls handshake: %w", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue