To check if our private key and ssl certificate matched against each other, we need to compare two command outputs:
1. Run below command against the private key
$ openssl rsa -noout -modulus -in private.key | openssl md5
2. Run below command against the ssl certificate
$ openssl x509 -noout -modulus -in server.cert | openssl md5
The output for both the commands should be the same, showing that the key and cert are compatible.
No comments:
Post a Comment