I renewed my SSL certificate at a very well known company, who screwed up my order. After it was righted, I received several certificate files with no instructions:
- MY.SERVER.COM.crt
- OV_ThatCompanyOVServerCA2.crt
- AddTrustExternalCARoot.crt
- OV_USERTrustRSACertificationAuthority.crt
So I remembered that I needed to concatenate them together. I did that, although who knows if I have the right order because there are thousands of conflicting instructions I found on Google.
I installed the certificate in my nginx
server. Then I get this:
nginx: [emerg] SSL_CTX_use_PrivateKey_file("/usr/nginx/conf/myserver.key") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch)
Uh-oh. I don't have a .key file this time. All I have are:
- privkey.pem
- myserver.csr
So the old key file doesn't work. I tried substituting the privkey.pem
file and got this:
Enter PEM pass phrase:
Well, who knows what that is. I didn't think I created a pass phrase.
I have no idea what to do next. How do I generate a key file that will work?