Skip to content

Instantly share code, notes, and snippets.

@sergio
Created January 9, 2020 19:10
Show Gist options
  • Select an option

  • Save sergio/ca34f1d5eb3a1d6d6c3b62f8d2daf423 to your computer and use it in GitHub Desktop.

Select an option

Save sergio/ca34f1d5eb3a1d6d6c3b62f8d2daf423 to your computer and use it in GitHub Desktop.
Validate if key and cer match #openssl #x509
openssl pkey -in privateKey.key -pubout -outform pem | sha256sum
openssl x509 -in certificate.crt -pubkey -noout -outform pem | sha256sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment