Secure Sockets Layer (SSL) Certificate Converter
Convert PEM/DER/P7B/PFX certificates in your browser and inspect chain expiry plus private-key requirements before downloading.certificate.pfx.{{ artifactPreview }}
| Field | Value | Copy |
|---|---|---|
| {{ row.label }} | {{ row.value }} |
| # | Role | Subject | Issuer | Expires | Days | Status | Public key | Copy |
|---|---|---|---|---|---|---|---|---|
| {{ row.position }} | {{ row.role }} | {{ row.subject }} | {{ row.issuer }} | {{ row.expires }} | {{ row.days }} | {{ row.status }} | {{ row.keyProfile }} |
| Check | Status | Operational note | Copy |
|---|---|---|---|
| {{ row.area }} | {{ row.status }} | {{ row.detail }} |
Introduction
A certificate often has to cross a boundary between systems before it can be installed. A web server may expect readable PEM text, an appliance may require a binary DER certificate, a Windows import may need a PFX archive, and a Java-oriented workflow may supply a P7B chain. Converting the container solves that compatibility problem without issuing a new certificate.
The certificate itself is an X.509 record signed by an issuer. It carries a subject, issuer, serial number, public key, validity interval, and extensions that describe how the certificate may be used. PEM and DER are two encodings of that record. PKCS#7, commonly saved as P7B, can carry certificates and chains but not private keys. PKCS#12, commonly saved as PFX or P12, can package certificates with a private key and protect the archive with a password.
| Container | Typical purpose | Can contain a private key? |
|---|---|---|
| PEM | Text-based certificates, chains, and separate keys | Yes, when a key block is included |
| DER | One binary X.509 certificate | No |
| P7B / PKCS#7 | Certificate-only bundles and issuing chains | No |
| PFX / PKCS#12 | Password-protected certificate and key handoff | Yes |
Changing the container does not establish trust. A successful conversion does not prove that the certificate matches a hostname, chains to a trusted root, has not been revoked, or belongs to the supplied private key. Those checks require certificate validation and key-matching steps outside the encoding change.
Private keys deserve stricter handling than public certificates. A PEM file that includes a key or a PFX archive can authorize a system to act as the certificate holder. Keep those artifacts and their passwords out of tickets, chat, shared screenshots, and ordinary document storage.
How to Use This Tool:
Start with the container you actually received, then choose an output that matches the importing system.
- Paste or browse for the Certificate or bundle. Leave Input format on Auto detect for recognizable PEM text, or choose the base64 option for DER, P7B, or PFX bytes represented as text.
- Choose Output format. Use Inspect only when you need certificate evidence without creating a new artifact.
- Set the chain and key choices that the target requires. PFX output needs a parsed private key; PEM includes the key only when Include private key is on. Enter the password needed to open protected input or protect a new PFX.
- Review Conversion readiness and the chain expiry information. If the artifact is not ready, correct the missing key, passphrase, or source-format problem before downloading.
- Compare the leaf subject, issuer, serial number, and SHA-256 fingerprint with the source record or an independent certificate inspection before installing the converted file.
Interpreting Results:
The most useful identity check is the leaf certificate fingerprint. Matching SHA-256 fingerprints indicate that two encodings contain the same certificate. Subject and issuer names are helpful context, but names alone are not unique enough to prove identity.
- Conversion readiness confirms whether the selected container has the material it needs. It does not validate trust or hostname coverage.
- Chain inventory shows the apparent leaf-to-issuer order and each certificate's expiry. Confirm the chain with the receiving system or a dedicated path validator.
- Days remaining is a planning cue based on the certificate's not-after time. Revocation or policy can make a certificate unusable before that date.
Technical Details:
X.509 certificate fields stay inside the certificate's signed ASN.1 structure while the outer representation changes. PEM wraps DER bytes in base64 text with labeled boundaries. P7B groups certificates in a PKCS#7 structure, while PFX uses PKCS#12 to carry certificates and optional private-key material.
Transformation Core:
The conversion first decodes the source container into certificates and any available private key. It then orders certificate records, selects the leaf or full chain, and writes the requested receiving container.
| Requested output | Certificate selection | Key rule | Representation |
|---|---|---|---|
| Inspect only | Parsed chain | No key required | No converted file |
| PEM bundle | Leaf or full chain | Optional; required only when key inclusion is selected | Base64 text with PEM boundaries |
| DER certificate | Leaf only | Not included | Binary X.509 certificate |
| P7B | Leaf or full chain | Not included | PEM or binary PKCS#7 |
| PFX | Leaf or full chain | Required | Binary PKCS#12 archive |
PEM output wraps base64 lines at 48 to 76 characters in steps of four. Strict base64 parsing removes whitespace but rejects other unexpected characters; relaxed parsing also removes pasted separators and other non-base64 characters. Source text is limited to 262,144 characters.
Formula Core:
Expiry planning compares the not-after instant with the current evaluation time and rounds a partial remaining day upward.
D is whole days remaining, and both time values are milliseconds. Displayed dates use UTC.
Rule Core:
| Days remaining | Status | Meaning |
|---|---|---|
| D < 0 | Expired | The not-after time has passed. |
| 0 ≤ D ≤ 30 | Renew soon | The certificate is within the 30-day renewal window. |
| 30 < D ≤ 90 | Monitor | Expiry is more than 30 days away but no more than 90 days away. |
| D > 90 | Valid | The expiry date is more than 90 days away. |
Chain ordering follows matching subject and issuer names and labels the first certificate as the leaf. A final self-issued certificate is labeled as a root. This inventory logic does not verify signatures, basic constraints, key usage, revocation, hostname identity, or a private-key match.
Privacy and Safety Notes:
Certificate material is parsed and converted in the current browser tab; no certificate, key, or passphrase is sent to a conversion service. Local processing reduces exposure, but the browser, device, clipboard, downloads folder, and any later sharing remain part of the security boundary.
- Use a protected device and clear sensitive clipboard contents after copying key-bearing material.
- A blank PFX password is accepted, but many importers expect a password and an unprotected archive is easier to misuse.
- Verify certificate-to-key matching and the trust chain with an independent tool before deployment.
Worked Examples:
PEM certificate for a DER-only importer
Paste the PEM certificate, choose DER leaf certificate, and leave private-key inclusion off. The result contains the same leaf certificate as binary DER. Compare the SHA-256 fingerprint before and after the conversion, then use the DER file only if the importing system expects one certificate rather than a chain.
Certificate and key packaged as PFX
Load the certificate bundle, supply its matching private key, choose PFX, and enter a passphrase. Turn on full-chain inclusion when the receiving system needs intermediates in the archive. A ready artifact confirms that the required material was parsed; independently check the key match and chain before import.
References:
- RFC 5280: Internet X.509 Public Key Infrastructure Certificate and CRL Profile, IETF, May 2008.
- RFC 7468: Textual Encodings of PKIX, PKCS, and CMS Structures, IETF, April 2015.
- RFC 2315: PKCS #7, IETF, March 1998.
- RFC 7292: PKCS #12 Personal Information Exchange Syntax, IETF, July 2014.
- How to convert PEM and DER certificates using OpenSSL, Simplified Guide.
- How to create a PFX file from PEM certificates using OpenSSL, Simplified Guide.