How: SSL checking
July 14, 2020 —
cmcipriano
This is how to check if the SSL certificate matches the private key.
for SSL certificate
$: openssl x509 -noout -modulus -in file.crt | openssl md5
for RSA private key
$: openssl rsa -noout -modulus -in file.key | openssl md5
for CSR
$: openssl req -noout -modulus -in file.csr | openssl md5
make sure the md5 hash would all be the same.
Tags: terminal-commands