SSL converter

Convert between PEM and PKCS#12 (.pfx / .p12) directly with PHP's OpenSSL support. PKCS#7 (.p7b) conversion needs the OpenSSL command line, so it only works where shell_exec is enabled — it is, on this server.

PEM (cert + key) → PKCS#12 (.pfx)

PKCS#12 (.pfx) → PEM

PKCS#7 (.p7b) → PEM

What is SSL converter?

Certificates and keys are stored in different container formats depending on the server or platform — PEM (plain text, most common), PKCS#12/.pfx (used by Windows and some load balancers), and PKCS#7/.p7b — and switching servers often means converting between them.

How to use it

Convert PEM (certificate + key) into a password-protected .pfx, extract a .pfx back into PEM, or extract certificates from a .p7b bundle where the server supports it.

Example

A PEM certificate and key combine into a single downloadable certificate.pfx file.