Skip to content

Instantly share code, notes, and snippets.

@tufank
Last active October 1, 2024 14:32
Show Gist options
  • Select an option

  • Save tufank/029d3c44985b3aabbcb46a5db469ce21 to your computer and use it in GitHub Desktop.

Select an option

Save tufank/029d3c44985b3aabbcb46a5db469ce21 to your computer and use it in GitHub Desktop.
Check if key, certificate request and public certificate match each other
# these should be the same for a match
openssl rsa -modulus -noout -in file.key | openssl sha256
openssl req -noout -modulus -in file.csr| openssl sha256
openssl x509 -noout -modulus -in file.crt | openssl sha256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment