Convert certificate .pem to .der/.cer
certificate, iis-7, security, x509certificate
Solution
It looks like you're trying to convert a partial certificate (one that hasn't been signed), and not a complete PEM certificate. Normally it's something like:
- Make a private key
- Make a CSR (certificate request)
- Submit the CSR somewhere
- Get the response
- Attach the response to the private key
- Profit
You should be able to convert the completed certificate to whatever format you like. You can combine many of those steps if you want to do a self-signed certificate, too.
Problem
I'm trying convert .pem to .cer using OpenSSL... ``` openssl x509 -inform PEM -in root.pem -outform DER -out root.cer ``` But, I don't know how to install the certificate on IIS 7.0 over Win Server 2008. I read some tutorials about it and tried to install the cert in IIS 7.0 Server Certificates -> complete certificate request -> The following error appears Cannot find the certificate request associated with this certificate file. A certificate request must be completed on the computer where it was created. The installation of the certificate to IIS fails. Any suggestions on how to proceed installing the .cer in IIS 7?