Browse Source

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

Laurie Clark-Michalek 9 years ago
parent
commit
eba41cd7b3
1 changed files with 0 additions and 4 deletions
  1. 0 4
      pkg/transport/listener.go

+ 0 - 4
pkg/transport/listener.go

@@ -23,7 +23,6 @@ import (
 	"crypto/x509/pkix"
 	"crypto/x509/pkix"
 	"encoding/pem"
 	"encoding/pem"
 	"fmt"
 	"fmt"
-	"log"
 	"math/big"
 	"math/big"
 	"net"
 	"net"
 	"os"
 	"os"
@@ -235,9 +234,6 @@ func (info TLSInfo) ClientConfig() (*tls.Config, error) {
 		if err != nil {
 		if err != nil {
 			return nil, err
 			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 {
 	if info.selfCert {