From 5871fd088c99b91758f832da80fe4a7d5f32e2cf Mon Sep 17 00:00:00 2001 From: Taylor Date: Wed, 8 Jul 2020 18:27:57 -0600 Subject: [PATCH] Don't validate remote cert --- tls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tls.go b/tls.go index 563bd05..dd5ec5f 100644 --- a/tls.go +++ b/tls.go @@ -6,7 +6,7 @@ import ( ) func GetPeerServerCertificateChain(dns string) (pscc []*x509.Certificate, err error) { - conn, err := tls.Dial("tcp", dns, &tls.Config{}) + conn, err := tls.Dial("tcp", dns, &tls.Config{InsecureSkipVerify: true}) if err != nil { return }