Added nolit gosec to InsecureSkipVerify, see PR for details
This commit is contained in:
parent
a6757762af
commit
6b1a008719
|
@ -207,7 +207,7 @@ func verifyCert(cert *x509.Certificate, publicKey *ecdsa.PublicKey) error {
|
|||
// the function expects there to be only 1 certificate
|
||||
func getServerCert(URL *url.URL) (*x509.Certificate, error) {
|
||||
conf := &tls.Config{
|
||||
InsecureSkipVerify: true, // Only skip verify to get the server's TLS cert. DO NOT skip for any other reason.
|
||||
InsecureSkipVerify: true, // nolint: gosec // Only skip verify to get the server's TLS cert. DO NOT skip for any other reason.
|
||||
}
|
||||
|
||||
conn, err := tls.Dial("tcp", URL.Host, conf)
|
||||
|
|
Loading…
Reference in New Issue