pkg/transport: Obey the usual laws of ssl when using a private PKI

This commit is contained in:
Laurie Clark-Michalek 2016-09-15 17:01:37 +01:00
parent b9d3bd8d42
commit eba41cd7b3
No known key found for this signature in database
GPG Key ID: B3550303A790C142

View File

@ -23,7 +23,6 @@ import (
"crypto/x509/pkix"
"encoding/pem"
"fmt"
"log"
"math/big"
"net"
"os"
@ -235,9 +234,6 @@ func (info TLSInfo) ClientConfig() (*tls.Config, error) {
if err != nil {
return nil, err
}
// if given a CA, trust any host with a cert signed by the CA
log.Println("warning: ignoring ServerName for user-provided CA for backwards compatibility is deprecated")
cfg.ServerName = ""
}
if info.selfCert {