- Published
- Author
- Sagar Ghorse
*
*Convert .pem certificate into .pfx
To convert a
1. Ensure you have OpenSSL installed.
2. Prepare the required files:
◦
◦ Private key file (
◦ (Optional) CA chain file (
3. Run the following command to create the
4. When prompted, enter a password to secure the
5. Verify the
This process combines the certificate, private key, and CA chain (if provided) into a
#Certificates #SSL&TLS
*Convert .pem certificate into .pfx
To convert a
.pem certificate to .pfx, follow these steps:1. Ensure you have OpenSSL installed.
2. Prepare the required files:
◦
.pem certificate file (certificate.pem)◦ Private key file (
privatekey.pem)◦ (Optional) CA chain file (
ca-chain.pem)3. Run the following command to create the
.pfx file:Code
openssl pkcs12 -export -out certificate.pfx -inkey privatekey.pem -in certificate.pem -certfile ca-chain.pem4. When prompted, enter a password to secure the
.pfx file.5. Verify the
.pfx file using:Code
openssl pkcs12 -info -in certificate.pfxThis process combines the certificate, private key, and CA chain (if provided) into a
.pfx file, which is commonly used for secure applications like Windows servers or browser-based authentication.#Certificates #SSL&TLS