Skip to content

Instantly share code, notes, and snippets.

@papanito
Last active August 7, 2019 07:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save papanito/1664fa452087e3ae91bafd73a74b2edd to your computer and use it in GitHub Desktop.
Save papanito/1664fa452087e3ae91bafd73a74b2edd to your computer and use it in GitHub Desktop.
Certificate Key Matcher
https://www.sslshopper.com/certificate-key-matcher.html
CERT=xx.pem
CSR=dev-xx.csr
KEY=dev-xx.key
openssl pkey -in $KEY -pubout -outform pem | sha256sum
openssl x509 -in $CERT -pubkey -noout -outform pem | sha256sum
openssl req -in $CSR -pubkey -noout -outform pem | sha256sum
https://stackoverflow.com/questions/21916902/trying-to-merge-certificate-and-private-key
openssl pkcs12 -export -inkey $KEY -in $CERT -out dev-docu.pfx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment