How to Get Modulus Info on an SSL Certificate

- 17 Jul 2007

When your SSL keys and certificates fall out of sync let the headaches begin.

Here is a common error from apache: Error: “Unable to configure RSA server private key”

Check to see if they are in sync using openssl. Compare the modulus values of both the key and the certificate. Here is how to get the modulus information out of the public key file and the certificate file:

Certificate File:

openssl x509 -noout -text -in [certificate_filename] -modulus

Public Key File:

openssl rsa -noout -text -in [public_key_filename] -modulus 

Related Posts: Extracting Smarty variables from source » Installing vzdump on CentOS 5.4 (32-bit) » Dumping Addresses from phplist » Adding NRPE (Nagios) to CentOS \/ RHEL Servers » Adding the REMI Repository to CentOS / RHEL / RedHat »

comments powered by Disqus