Skip to content

Instantly share code, notes, and snippets.

@olblak
Created November 19, 2019 10:19
Show Gist options
  • Save olblak/947b0826fee8fa07434d5827a9ea9292 to your computer and use it in GitHub Desktop.
Save olblak/947b0826fee8fa07434d5827a9ea9292 to your computer and use it in GitHub Desktop.
Test if certificate match private key and certificate request
openssl pkey -in <your_private_key> -pubout -outform pem | sha256sum  ✔  10061  11:13:59
==
openssl x509 -in <your_certificate> -pubkey -noout -outform pem | sha256sum  ✔  10062  11:15:21
==
openssl req -in <your_certificate_request> -pubkey -noout -outform pem | sha256sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment