Check modulus of ssl key and certificate to see if they match

Use these commands to see if a private key matches a server’s certificate:

# openssl rsa -noout -modulus -in server.key
# openssl x509 -noout -modulus -in server.crt

If the modulus us the same, you can use them.