Skip to content

Commit

Permalink
Don't validate remote cert
Browse files Browse the repository at this point in the history
  • Loading branch information
taybart committed Jul 9, 2020
1 parent 77aba1a commit 5871fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 5871fd0

Please sign in to comment.