Search certificates with public key

548 views
Skip to first unread message

John Smith

unread,
Jun 22, 2020, 11:45:26 AM6/22/20
to crt.sh
Is there any way to search certificates with public key?

Rob Stradling

unread,
Jun 22, 2020, 2:14:01 PM6/22/20
to crt.sh
Yes, you can search by SHA-1(SubjectPublicKeyInfo) or SHA-256(SubjectPublicKeyInfo).  See the "Advanced..." options page (https://crt.sh/?a=1).

To calculate the SHA-256(SubjectPublicKeyInfo) of a certificate, you can do this:
openssl x509 -in your_certificate.pem -pubkey -noout | openssl pkey -pubin -outform der | sha256sum
Reply all
Reply to author
Forward
0 new messages