Skip to content

Instantly share code, notes, and snippets.

@wuhanstudio
Last active December 23, 2019 02:30
Show Gist options
  • Save wuhanstudio/746a5fdef97820e36591f3dbdf47fba8 to your computer and use it in GitHub Desktop.
Save wuhanstudio/746a5fdef97820e36591f3dbdf47fba8 to your computer and use it in GitHub Desktop.
Check SSL validity
# Outputs from three commands below shall be identical
# CSR
openssl req -in www.wuhanstudio.team.csr -pubkey -noout -outform pem | sha256sum
# Private Key
openssl pkey -in www.wuhanstudio.team.key -pubout -outform pem | sha256sum
# Cert
openssl x509 -in www.wuhanstudio.team.cert -pubkey -noout -outform pem | sha256sum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment