diff options
author | Luke Shumaker <lukeshu@datawire.io> | 2018-12-26 12:33:49 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@datawire.io> | 2018-12-26 12:33:49 -0500 |
commit | 8c0133aeb36d6f384498986ed2cf4c67431f1d16 (patch) | |
tree | 114c9efe1fb718aa6bd27502d1c2490d6dc3aed4 | |
parent | 3865661e12c1dc9ec998344c3dd2f62ecd660beb (diff) |
tls-getcernts: Support SNI
-rw-r--r-- | bin-src/tls-getcerts.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin-src/tls-getcerts.go b/bin-src/tls-getcerts.go index 34e25e5..bfc0b5b 100644 --- a/bin-src/tls-getcerts.go +++ b/bin-src/tls-getcerts.go @@ -141,7 +141,7 @@ func getcert(socket string) (*x509.Certificate, error) { return nil, fmt.Errorf("Unknown negotiation path: %q", u.Path) } - connTLS := tls.Client(connRaw, &tls.Config{InsecureSkipVerify: true}) + connTLS := tls.Client(connRaw, &tls.Config{ServerName: host, InsecureSkipVerify: true}) defer connTLS.Close() err = connTLS.Handshake() if err != nil { |