==== Zertifikate ====
Zur Erstellung von .pem .key aus einer .pfx-Datei
- To convert a PFX file to a PEM file that contains both the certificate and private key:
openssl pkcs12 -in filename.pfx -out cert.pem -nodes
- To convert a PFX file to separate public and private key PEM files:
* Extracts the private key form a PFX to a PEM file:
openssl pkcs12 -in filename.pfx -nocerts -out key.pem
* Exports the certificate (includes the public key only):
openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem
* Removes the password (paraphrase) from the extracted private key (optional):
openssl rsa -in key.pem -out server.key