We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97048ee commit e7abca4Copy full SHA for e7abca4
cmd/ssl-pinning-fetcher/main.go
@@ -48,6 +48,10 @@ func main() {
48
hashHex := hex.EncodeToString(hash[:])
49
50
// Print the base64 encoded hash
51
+ subjectCommonName := cert.Subject.CommonName
52
+ issuerOrganization := cert.Issuer.Organization
53
+ fmt.Println("CN", subjectCommonName)
54
+ fmt.Println("Issuer O", issuerOrganization)
55
fmt.Println("Base64 encoded SHA-256 hash of the certificate:", hashBase64)
56
fmt.Println("Hex encoded SHA-256 hash of the certificate:", hashHex)
57
}
0 commit comments