Skip to content

Commit

Permalink
get first index
Browse files Browse the repository at this point in the history
  • Loading branch information
nothinux committed Mar 16, 2022
1 parent 917953d commit a6da3a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/certify/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func tlsDial(host string) (*x509.Certificate, error) {
defer net.Close()

certChain := net.ConnectionState().PeerCertificates
cert := certChain[len(certChain)-1]
cert := certChain[0]

return cert, nil
}

0 comments on commit a6da3a8

Please sign in to comment.