• Register

Hash value of SSL certificate

0 votes
94 views

Hi Experts,

How can we find the hash value of an SSL certificate using the openssl command? 

Is this the right way to do it?

krishna@PI3:~ $ echo | openssl s_client -connect mail.google.com:443 | openssl x509 -noout -text  | grep -A 25 CA:FALSE
depth=3 C = US, O = Equifax, OU = Equifax Secure Certificate Authority
verify return:1
depth=2 C = US, O = GeoTrust Inc., CN = GeoTrust Global CA
verify return:1
depth=1 C = US, O = Google Inc, CN = Google Internet Authority G2
verify return:1
depth=0 C = US, ST = California, L = Mountain View, O = Google Inc, CN = mail.google.com
verify return:1
DONE
                CA:FALSE
            X509v3 Authority Key Identifier:
                keyid:4A:DD:06:16:1B:BC:F6:68:B5:76:F5:81:B6:BB:62:1A:BA:5A:81:2F

            X509v3 Certificate Policies:
                Policy: 1.3.6.1.4.1.11129.2.5.1
                Policy: 2.23.140.1.2.2

            X509v3 CRL Distribution Points:

                Full Name:
                  URI:http://pki.google.com/GIAG2.crl

    Signature Algorithm: sha256WithRSAEncryption
         29:ed:b8:a9:bf:9f:99:0d:20:89:00:15:3d:63:e6:73:51:c0:
         5a:33:65:fd:b5:e1:37:29:5d:61:cd:5e:8a:68:3d:ff:d9:5b:
         48:e1:6f:e7:5a:ed:c7:6e:f4:48:3a:ce:69:fd:77:80:ee:61:
         16:56:15:59:68:ce:1e:44:81:33:97:25:e2:e7:20:6e:41:30:
         d4:85:96:f2:15:4d:a2:d2:29:03:2a:25:99:cc:01:d2:6e:77:
         56:23:6f:0e:2f:56:fe:cc:21:e4:00:32:5a:e4:35:08:f1:e7:
         38:dc:ff:ae:29:f3:4c:0e:d3:e6:61:4d:ca:2f:5b:6a:46:28:
         c0:8f:5d:9d:03:7c:19:36:5c:92:6c:17:a5:46:6a:a9:36:5a:
         ef:b4:af:39:86:e5:53:c7:e9:ae:12:6b:6d:3e:1b:f8:71:67:
         97:c4:ef:f5:2d:6a:d6:cd:5e:93:85:13:ab:24:62:fb:e9:88:
         e3:89:dc:25:1a:86:50:65:15:76:af:77:9c:9a:df:1f:94:23:
         43:b7:db:8b:36:2d:d5:00:47:ce:56:0d:27:a6:2f:2a:75:05:
krishna@PI3:~ $

Krishna

 

 

asked Jan 11 in SSL Certificates by Krishna (180 points)
Looking for an answer?  Share this question:     

Please log in or register to answer this question.

Related questions

+1 vote
1 answer 1,880 views
1,880 views asked Sep 11, 2014 in SSL Certificates by Enkel
0 votes
1 answer 192 views
+1 vote
3 answers 233 views
...