THE FILE FIELD GUIDE
.der

DER Certificate

Certificates & Keys

DER is binary encoding for ASN.1 structures, not exclusively certificates. Establish whether it contains a certificate, key or request. Unreadable text is not evidence of corruption; use a tool matching the structure.

What it is used for
Binary encoding of certificates, keys or requests
What the file contains
Binary data
All sections, questions and sources

Content reviewed: · Editor:Kai

Opening steps

Choose your environment or purpose to see its steps.

Identify the DER object

DER can encode keys or requests too.

  1. Inspect producer and consumer documentation.
  2. Identify certificate, key or request requirements.
  3. Read a copy with DER input in the appropriate tool.
Inspect certificate metadata

Inspect without trust import.

  1. Use x509 or equivalent on an identified certificate copy.
  2. Inspect names, issuer and validity.
  3. Compare destination requirements and chain.
Create a PEM output

The object type stays the same.

  1. Choose the matching object-specific tool.
  2. Retain DER and export PEM separately.
  3. Inspect labels/content and private-key protection.

Menu labels and support vary by app, OS and version. Preserve the original before making changes.

Troubleshooting by symptom

  • Certificate reader fails: check whether it is actually a key/request.
  • PEM parser fails: establish the input encoding.
  • Application rejects it: inspect structure/algorithm/version support.
  • Unreadable text: use a binary-aware parser.
  • Key output unexpected: inspect object type/options.
  • Digest differs: distinguish encoding-dependent file hash and certificate fingerprint.

Confirmed DER structure → PEM

  1. Read using the matching structure parser and request PEM output.
  2. Compare labels/public details and required key encryption.
  3. Verify object type and maintain appropriate protection/access on key-bearing outputs.

Re-encoding does not change structure type; renaming a key does not issue a certificate.

Determine object type first

Identify the producer’s object type before selecting inspection tools.

Example: investigate key/request types when a certificate parser rejects DER.

Source for these steps:IETF / RFC Editor · RFC 7468 — Textual Encodings / OpenSSL Project · openssl-x509 / OpenSSL Project · openssl-pkey / OpenSSL Project · openssl-req

Encoding conversion does not renew content

Conversion does not renew identity, validity or key purpose.

Source for these steps:IETF / RFC Editor · RFC 7468 — Textual Encodings / OpenSSL Project · openssl-x509 / OpenSSL Project · openssl-pkey / OpenSSL Project · openssl-req

Related-format differences

Related-format differences
Format / methodRoleWhat to verify
DERBinary encodingObject type
PEMText encodingLabel/protection
Certificate/key/CSRDifferent rolesCorrect parser

Handling and security

DER can contain private keys; do not send unknown structures to online analyzers.

Questions and answers

Always a certificate?

Keys/requests or other structures are possible.

Is garbled text corruption?

It may simply be binary viewed as text.

Does PEM conversion make it safe?

Encoding does not fix secrets or trust.

Does conversion to PEM encrypt it?

Encoding and key encryption are separate; inspect both.

Can different DER files require different commands?

Choose tools by the encoded object type.

Format facts: name, steward and MIME type
Formal name
Distinguished Encoding Rules encoded structure
Steward / specification
ASN.1 standards / producing cryptographic tools
MIME type
Depends on the producer or server; an extension alone does not establish a MIME type.

Primary and official sources

  • StandardRFC 7468 — Textual Encodings

    Defines textual encodings for certificates, keys and requests.

    IETF / RFC Editor · Link checked:
  • Project documentationopenssl-x509

    Reference for certificate inspection and PEM/DER conversion.

    OpenSSL Project · Link checked:
  • Project documentationopenssl-pkey

    Documents key processing and format selection.

    OpenSSL Project · Link checked:
  • Project documentationopenssl-req

    Reference for certificate requests and self-signed certificates.

    OpenSSL Project · Link checked: