Try to Import: Unable to save the certificate


I have generated by CSR and got back a certificate from COMODO. However now when i try to import it using the Ensim control panel i get the error below:

Result : Unable to save the certificate.
The following error occured: The key /home/virtual/admin10/etc/httpd/conf/ssl.key/server.key and the certificate /home/virtual/admin10/etc/httpd/conf/ssl.crt/ do not match.
Original Message:
The key /home/virtual/admin10/etc/httpd/conf/ssl.key/server.key and the certificate /home/virtual/admin10/etc/httpd/conf/ssl.crt/ do not match.

Any ideas?

Please help, cheers.

In all likelihood you will need to start fresh with a new CSR and have your certificate re-issued. However, if you have access to the command line you can run the following commands against the key and the certificate to compare the modulus to see if they are in fact mismatched, or if Ensim is reporting this in error.
$ openssl x509 -noout -modulus -in server.crt | openssl md5
$ openssl rsa -noout -modulus -in server.key | openssl md5

This leaves you with two numbers to compare. It is, in theory, possible that these numbers may be the same, without the modulus numbers being the same, but the chances of this are overwhelmingly remote.

Should you wish to check to which key or certificate a particular CSR belongs you can perform the same calculation on the CSR as follows:

$ openssl req -noout -modulus -in server.csr | openssl md5

Comodo Support