Import/Export
Export/Import a SSL certificate with Apache/OpenSSL
Export your SSL certificate
To export your SSL certificate with Apache, you must combine your SSL certificate, the intermediate certificate and your private key in a backup file .pfx.
Run the following command:
openssl pkcs12 -export -out SSL247Backup.pfx -inkey yourprivatekey.txt -in yourSSLcertificate.crt -certfile intermediate.crt
Adapt the command with yourprivatekey.txt (the path to your private key file), yourSSLcertificate.crt (the path to your SSL certificate) and intermediate.crt (the path to your intermediate certificate).
Import your SSL certificate
Once you have your .pfx file, run the following command to get the private key file:
openssl pkcs12 -in SSL247Backup.pfx -out privatekey.txt -nodes
Open the privatekey.txt file and save its content to a .key file. You can now follow our SSL certificate installation instructions.
Export/Import a SSL certificate with Microsoft IIS 5.0, 6.0 & 7.0 and Microsoft Exchange 2007
Export your SSL certificate
- Launch the Microsoft Management Console (MMC) (Start > Run > mmc).
- Click File and choose Add/Remove Snap In.
- Click Add, choose Certificates and click Add.
- Choose Computer Account, click Next, choose Local Computer and click Finish.
- Close the two windows and in the MMC, click on + to expand the Certificates (Local Computer) console tree.
- Find your personal folder and expand Certificates.
- Right-click on the certificate you want to export and choose All Tasks > Export.
- Follow the wizard and choose to: "Yes, export the private key", "Include all certificates in certificate path if possible" and "Leave default settings"
- Choose a path where to save your certificate and the process is finished.
Import your certificate SSL
- Launch the Microsoft Management Console (MMC) (Start > Run > mmc).
- Click File and choose Add/Remove Snap In.
- Click Add, choose Certificates and click Add.
- Choose Computer Account, click Next, choose Local Computer and click Finish.
- Close the two windows and in the MMC, click on + to expand the Certificates (Local Computer) console tree.
- Find your personal folder and expand Certificates.
- Right-click on the folder "Personal Certificates Store" and choose All Tasks > Import.
- Select the certificate you wish to import. Choose to "Automatically place the certificates in the certificate stores based on the type of the certificate" when prompted.
Convert my certificate file with OpenSSL
.PEM to .DER
openssl x509 -outform der -in certificate.pem -out certificate.der
.PEM to .P7B
openssl crl2pkcs7 -nocrl -certfile certificate.cer -out certificate.p7b -certfile CACert.cer
.PEM tp .PFX
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt
.DER to .PEM
openssl x509 -inform der -in certificate.cer -out certificate.pem
.PEM to .PFX
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt
.DER to .PEM
openssl x509 -inform der -in certificate.cer -out certificate.pem
.P7B to .PEM
openssl pkcs7 -print_certs -in certificate.p7b -out certificate.cer
.P7B to .PFX
openssl pkcs7 -print_certs -in certificat.p7b -out certificate.cer
openssl pkcs12 -export -in certificate.cer -inkey privateKey.key -out certificate.pfx -certfile CACert.cer
.PFX to .PEM
openssl pkcs12 -in certificate.pfx -out certificate.cer -nodes