diff --git a/cmd/peer-rest-client.go b/cmd/peer-rest-client.go index 5e2dceb28..260bbda01 100644 --- a/cmd/peer-rest-client.go +++ b/cmd/peer-rest-client.go @@ -410,7 +410,7 @@ func newPeerRESTClient(peer *xnet.Host) (*peerRESTClient, error) { var tlsConfig *tls.Config if globalIsSSL { tlsConfig = &tls.Config{ - ServerName: peer.String(), + ServerName: peer.Name, RootCAs: globalRootCAs, } }