Skip to content

Instantly share code, notes, and snippets.

@tufank
tufank / check_key_csr_crt.sh
Last active October 1, 2024 14:32
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