I see the below error while importing the Server certificate.
"Private Key File does not match with the Certificate"
It is verified that we are using the correct Private key file.
We may get this error when we try to import a bundle certificate.
The order needs to be in the below order.
You can follow the below steps to concatenate the certificate.
Open a text editor (such as wordpad) and paste the entire body of each certificate into one text file in the following order:
- The Primary Certificate - your_domain_name.crt
- The Intermediate Certificate - Intermediate_CA.crt
- The Root Certificate - TrustedRoot.crt
Make sure to include the beginning and end tags on each certificate. The result should look like this:
(Your Primary SSL certificate: your_domain_name.crt)
(Your Intermediate certificate: Intermediate_CA.crt)
(Your Root certificate: TrustedRoot.crt)
Save the combined file as your_domain_name.pem. The .pem file is now ready to use.
NOTE: We must make sure that the certificate encoding that is needed when working with the certificates (exporting, importing, concatenating) is "base64".