Added nolit gosec to InsecureSkipVerify, see PR for details

This commit is contained in:
Samuel Hawksby-Robinson 2022-08-24 21:58:11 +01:00
parent a6757762af
commit 6b1a008719
1 changed files with 1 additions and 1 deletions

View File

@ -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)