Alternatively, if you want to generate a PKCS12 from a certificate file (cer/pem), a certificate chain (generally pem or txt), and your private key, you need to use the following command: openssl pkcs12 -export -inkey yourprivatekey.key -in yourcertificate.cer -certfile yourchain.pem -out finalresult.pfx. How to create a PFX using OpenSSL. OpenSSL is a library (programme) available in every Unix operational system. If you have a Linux server or work with a Linux server, you will certainly find OpenSSL among the available programmes. In OpenSSL you need to transfer the separately saved private key into a PFX (PKCS#12) file.
You have a private key file in an openssl format and have received your SSL certificate. You'd like now to create a PKCS12 (or .pfx) to import your certificate in an other software?
Here is the procedure!
- Find the private key file (xxx.key) (previously generated along with the CSR).
- Download the .p7b file on your certificate status page ('See the certificate' button then 'See the format in PKCS7 format' and click the link next to the diskette).
- a) Convert this file into a text one (PEM):On Windows, the OpenSSL command must contain the complete path, for example:
c:openssl-win32binopenssl.exe ...) - b) Now create the pkcs12 file that will contain your private key and the certification chain:You will be asked to define an encryption password for the archive (it is mandatory to be able to import the file in IIS). You may also be asked for the private key password if there is one!
![From From](/uploads/1/2/6/0/126071029/865910339.jpg)
You can now use the file file final_result.p12 in any software that accepts pkcs12! For IIS, rename the file in .pfx, it will be easier.
Alternatively, if you want to generate a PKCS12 from a certificate file (cer/pem), a certificate chain (generally pem or txt), and your private key, you need to use the following command:
Linked Documentation:
Openssl Generate Crt And Key From Pfx
Last edited on 11/02/2018 10:04:53 --- [search]Openssl Export Public Key From Pfx
© TBS INTERNET, all rights reserved. All reproduction, copy or mirroring prohibited. Legal notice. -- Powered by anwiki