summaryrefslogtreecommitdiff
path: root/bin-src
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@datawire.io>2018-12-26 12:33:49 -0500
committerLuke Shumaker <lukeshu@datawire.io>2018-12-26 12:33:49 -0500
commit8c0133aeb36d6f384498986ed2cf4c67431f1d16 (patch)
tree114c9efe1fb718aa6bd27502d1c2490d6dc3aed4 /bin-src
parent3865661e12c1dc9ec998344c3dd2f62ecd660beb (diff)
tls-getcernts: Support SNI
Diffstat (limited to 'bin-src')
-rw-r--r--bin-src/tls-getcerts.go2
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 {