- Plesk for Linux
How to create self-signed certificate in PKCS12 format?
After creating the certificate in Plesk, the *.key and *.crt parts will be available under Plesk > Tools & Settings > SSL/TLS Certificates > cert_name
All these parts are stored in /usr/local/psa/admin/conf/httpsd.pem file.
Connect to the server via SSH and create two separate files httpsd.key and httpsd.crt copying the corresponding content from Plesk GUI.
Then, to convert in PKCS#12 (.pfx .p12) run the command below:
# openssl pkcs12 -export -out new_cert.pfx -inkey httpsd.key -in httpsd.crt