简体   繁体   中英

How to generate .key and .crt from PKCS#7

I purchased SSL certificate from slss.com and I've downloaded a file to my local pc there are .crt, ca-bundle, and p7b file and I've copied the files to the server and I'm trying to install the cert. to an apache2 web server but it requires a .key file and I don't know how to locate(if it exists) or how to convert one of the files to .key file using openssl or other methods

A '.p7b' file only contains certificates and chain certificates (Intermediate CAs), not the private key. The private key already exists, as the provided certificate should be related to the existed private key. You provided CA with your private key when requested a certificate. For this, you should further clarify it with CA which provided you with a certificate.

Certificates with '.p7b' extension can be converted in the standard '.pem' format using online services such as https://www.sslshopper.com/ssl-converter.html or by using OpenSSL CLI utility with following command:

# openssl pkcs7 -print_certs -in certificate.p7b -out certificate.pem

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM