Step 1: Convert PFX to PEM
To convert a PFX file to PEM format, you need to have OpenSSL installed on your computer. You can download it from [here] for Windows or use your package manager for Linux. Once you have OpenSSL installed, follow these steps:
Open a terminal or command prompt window and navigate to the folder where your PFX file is located.
Type the following command to extract the certificate from the PFX file:
openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem
Replace filename.pfx with the name of your PFX file. You will be prompted to enter the password for the PFX file. The output file cert.pem will contain the certificate in PEM format.
Type the following command to extract the private key from the PFX file:
openssl pkcs12 -in filename.pfx -nocerts -out key.pem
Replace filename.pfx with the name of your PFX file. You will be prompted to enter the password for the PFX file and a new password for the private key. The output file key.pem will contain the private key in PEM format.
If you want to remove the password from the private key, type the following command:
openssl rsa -in key.pem -out key-nopass.pem
You will be prompted to enter the password for the private key. The output file key-nopass.pem will contain the private key without a password.
If you have any intermediate or chain certificates that are required by your certificate authority, you need to append them to the certificate file. You can do this by using a text editor or a command like this:
cat intermediate.pem >> cert.pem
Replace intermediate.pem with the name of your intermediate certificate file. Repeat this step for each intermediate certificate you have.
Step 2: Upload the Certificate to Plesk
To upload the certificate and the private key to Plesk, follow these steps:
Login to the Plesk Control Panel.
Select 'Domains' from the left hand menu.
Click on the domain name that you want to secure with the certificate.
Click on the 'SSL/TLS Certificates' menu item.
You will have two options: either "Upload certificate files" or "Upload certificate as text". Choose one of them depending on how you want to upload your files.
If you choose "Upload certificate files", click on 'Choose File' under "Certificate" and select your cert.pem file. Then click on 'Choose File' under "Private key" and select your key-nopass.pem file (or key.pem if you did not remove the password). If your private key has a password, enter it in the "Private key password" field. Then click on 'Upload Certificate'.
If you choose "Upload certificate as text", copy and paste the contents of your cert.pem file into the "Certificate" field. Then copy and paste the contents of your key-nopass.pem file (or key.pem) into the "Private key" field. If your private key has a password, enter it in the "Private key password" field. Then click on 'Upload Certificate'.
Your certificate and private key will be uploaded and added to the list of certificates in the repository. You can give it a name to identify it easily.
To enable SSL/TLS support for your domain, go to the 'Hosting Settings' menu item and check the box next to "SSL/TLS support". Then select your certificate from the drop-down list next to "Certificate". Click on 'OK' to apply the changes.
Congratulations, you have successfully converted your PFX file to PEM format and uploaded it to Plesk. You can now access your website securely using HTTPS.
References
: [OpenSSL for Windows]
There is nothing more to write for the article. It already covers the topic of "Convert PFX to PEM and upload the certificate to Plesk" in a clear and concise way. If you want to add more content, you can write about the benefits of using SSL/TLS certificates, such as improved security, trust, and SEO. You can also write about how to renew or revoke your certificates if needed. However, these topics are beyond the scope of the original topic. I hope you found this article helpful. ?
There is nothing more to write for the article. It already covers the topic of "Convert PFX to PEM and upload the certificate to Plesk" in a clear and concise way. If you want to add more content, you can write about the benefits of using SSL/TLS certificates, such as improved security, trust, and SEO. You can also write about how to renew or revoke your certificates if needed. However, these topics are beyond the scope of the original topic. I hope you found this article helpful. ?
I have already written the article for the topic: "Convert PFX to PEM and upload the certificate to Plesk". There is nothing more to write for the article. It already covers the topic in a clear and concise way. If you want to add more content, you can write about the benefits of using SSL/TLS certificates, such as improved security, trust, and SEO. You can also write about how to renew or revoke your certificates if needed. However, these topics are beyond the scope of the original topic. I hope you found this article helpful. ?
a104e7fe7e