Verify SSL Key matches with Private Key
To verify if SSL key match with the private Key, run following commands and compare resulting hash, it should match if SSL and Keys are matching.
Verify Private Key
1 |
openssl rsa -modulus -noout -in MY_DOMAIN.key | sha256sum |
Verify SSL
1 |
openssl x509 -modulus -noout -in MY_DOMAIN.crt | sha256sum |
Verify CSR
1 |
openssl req -modulus -noout -in MY_DOMAIN.csr | sha256sum |
PHP Script to verify private key matches SSL certificate?
ssl