Getting an error while installing an SSL certificate on a Linux website through the provided CERT and KEY files

Problem: Getting an error while installing an SSL certificate on a Linux website using the provided CERT and KEY files.

Solution: Before proceeding with the SSL certificate installation, ensure that the CERT and KEY files are compatible and not mismatched. To verify the compatibility, confirm that the moduli of both keys are identical. This can be accomplished easily using OpenSSL on Linux/Windows with the following steps:

1. View the MD5 hash of the modulus of the private key:
 
   openssl rsa -noout -modulus -in mykey.key | openssl md5


2. View the MD5 hash of the modulus of the CSR:
  
   openssl req -noout -modulus -in mycsr.csr | openssl md5
  

3. View the MD5 hash of the modulus of the certificate:
   
   openssl x509 -noout -modulus -in mycert.crt | openssl md5
  

Compare the 'modulus' obtained from these three commands. A matching certificate and private key will have the same modulus value. If all three hashes match, the CSR, certificate, and private key are compatible.

Once compatibility is confirmed, upload the correct certificate and private key files to the website's root directory through File Explorer.


Proceed to install the SSL certificate on the website through the HC10 dashboard.


This verification process ensures a seamless SSL certificate installation and avoids potential issues related to key mismatches. If you encounter any challenges during this process, please consult at support@hostingcontroller.com