What is DER (Distinguished Encoding Rules)?

DER (Distinguished Encoding Rules) is the ASN.1 rule set that certificates and signed structures are encoded with, defined in ITU-T X.690. It matters for post-quantum work because every ML-DSA, SLH-DSA and ML-KEM certificate still needs the same DER structure.

On this page

What does DER stand for, and why does it come up in post-quantum certificate work?

DER stands for Distinguished Encoding Rules. It is one of three rule sets in the BER, CER and DER family, specified in ITU-T X.690 and ISO 8825-1, and it defines how ASN.1 data is turned into bytes. Within that family, DER is the rule set used to encode the signed data inside an X.509 certificate. If a vendor answer, tender or inventory mentions DER next to certificates or keys, the question for your team is usually not whether DER itself changes, but whether the structures it encodes now carry post-quantum keys and signatures. PKI, TLS and certificate teams are the ones who meet DER most often, because they handle certificates, certificate signing requests (CSRs) and key files that use it.

In practice, DER shows up in three places you will recognize from your inventory. The signed portion of an X.509 certificate is DER-encoded before it is signed, as RFC 5280 requires, so a larger public key or signature changes the bytes that get encoded and signed. A PKCS #10 certification request is built the same way: the certificationRequestInfo is DER-encoded into an octet string and then signed with the subject's private key, per RFC 2986. Key files and certificates are often shared as PEM text, which is a base64 wrapper around DER, with labels such as "CERTIFICATE" and "CERTIFICATE REQUEST" defined in RFC 7468. Check whether your tooling stores files as DER binaries or PEM text, because parsers and conversion scripts may behave differently on each.

For post-quantum planning, confirm that each component in your certificate chain parses the new algorithm identifiers and key sizes. RFC 9881 defines how ML-DSA keys appear in X.509, with a subjectPublicKey holding the raw public key bytes and no extra ASN.1 wrapping, and it requires the AlgorithmIdentifier parameters to be absent. RFC 9909 and RFC 9935 do the same for SLH-DSA and ML-KEM. Ask vendors which of these RFCs and which versions of their PKI and TLS libraries they support, and test certificate issuance and parsing in your own environment, because the sources here describe the standards, not how any given product implements them.

Which names and standard numbers refer to DER?

This table lists the names, rule sets and standard numbers that appear when DER is mentioned, so you can tell which document governs a given encoding. Use it to match a term in a vendor document or audit request to the specification it points to. The main takeaway is that DER is one of three ASN.1 rule sets, defined together in ITU-T X.690, and that older editions of that standard are no longer current.

Name or numberWhat it refers toStatus or note
Distinguished Encoding Rules (DER)One of three ASN.1 rule sets that define how values are encoded as bytes, with a single, unambiguous encoding for each valueAbbreviated DER; the term used in certificate standards such as RFC 5280
BER (Basic Encoding Rules)The base rule set from which DER and CER are derived, allowing more than one valid encoding of the same valueDefined in ITU-T X.690; sits beside DER and CER
CER (Canonical Encoding Rules)A rule set that restricts BER to a canonical form, sitting beside BER and DERDefined in ITU-T X.690; sits beside BER and DER
ITU-T X.690 (02/21)The standard that specifies BER, CER and DER togetherIn force, with Erratum 1 (09/21) in force
ISO 8825-1The ISO counterpart numbering for the same encoding rules set out in ITU-T X.690Confirm the edition you need against the ISO catalogue
ITU-T X.690 08/15 and earlierEarlier editions of the encoding rules standardSuperseded or withdrawn; do not cite as current
RFC 7468 PEM labelsTextual labels such as CERTIFICATE and CERTIFICATE REQUEST that wrap DER-encoded structures in Base64 textA textual form of DER-encoded data, not a separate encoding

Where do practitioners meet DER in certificates, CSRs and keys?

DER is the binary encoding behind many PKI objects, so it shows up wherever certificates and requests are signed or stored. The cards below cover the places a reviewer is most likely to meet it while inventorying or upgrading post-quantum certificate chains.

X.509 certificates

RFC 5280 says the signed data in a certificate is encoded using the distinguished encoding rules. The signature is computed over the DER-encoded tbsCertificate, so a certificate that is re-encoded by a tool that does not preserve DER will fail verification. When reviewing a certificate inventory, check that the tooling you use parses and reissues certificates as DER, and that the post-quantum signature algorithm is carried in the signatureAlgorithm field.

RFC 5280

PKCS #10 certification requests

RFC 2986 says a certification request is signed by first DER-encoding the certificationRequestInfo into an octet string and then signing that string with the subject's private key. Any CSR generator that emits a different byte encoding of the same fields will produce a signature the CA cannot verify. Ask your CA and key-management vendor which CSR format they produce and confirm that it is DER before the signed request is sent for issuance.

RFC 2986

PEM text files

RFC 7468 defines textual encodings of PKIX and PKCS structures, using labels such as CERTIFICATE and CERTIFICATE REQUEST. A PEM file is base64 text wrapped around DER bytes, so PEM is a transport wrapper and not a different encoding. When a tool asks for a certificate in PEM form, check that the wrapped content decodes to DER, since a PEM file with the right label can still hold a payload that a strict parser rejects.

RFC 7468

Post-quantum certificate profiles

The post-quantum certificate profiles define how DER-encoded keys and signatures are laid out for specific algorithms. RFC 9881 says the ML-DSA subjectPublicKey holds the raw public key bytes with no extra ASN.1 wrapping, and requires the AlgorithmIdentifier parameters to be absent. RFC 9909 and RFC 9935 define the matching identifiers for SLH-DSA and ML-KEM, and RFC 10073 notes that composite component encodings vary in length. Treat these profiles as the reference when checking a PQ certificate's structure.

RFC 9881

Vendor PKI and inventory documents

Vendor PKI, HSM and certificate inventory documents often ask for the encoding of certificates, keys and requests without defining the term. Look for questions about whether objects are stored and exported as DER or PEM, and whether the product parses DER strictly. A vendor who cannot say which encodings its tooling accepts and emits should be asked to confirm this in writing before the migration plan relies on it.

How does DER encode signed certificate data in practice?

In a certificate, DER fixes the exact bytes that get signed. RFC 5280, the Internet profile of X.509, defines a Certificate as a SEQUENCE of three parts: the tbsCertificate (the "to be signed" portion holding the subject, issuer, validity dates and the subject public key), the signatureAlgorithm, and the signatureValue, which is a BIT STRING. The signature is not computed over the certificate as a whole. It is computed over the DER-encoded tbsCertificate, and RFC 5280 section 4 states that the signed data is encoded using the distinguished encoding rules defined in ITU-T X.690. A verifier re-encodes the tbsCertificate with DER and checks the signature against those bytes, so any difference in encoding produces a verification failure even when the field values match.

A certification request works the same way. RFC 2986, which defines PKCS #10, says the CSR signature is made by first DER-encoding the certificationRequestInfo into an octet string and then signing that string with the subject's private key. The requester's key pair and the signing step therefore depend on DER producing one agreed byte sequence. When a CA or a library reports a bad signature on a CSR, the first things to check are the encoder, the library version and the handling of optional fields, because those are where byte-level differences usually enter.

Moving from classical keys to post-quantum keys changes the content of these structures, not the rules for encoding them. The subjectPublicKey BIT STRING, the AlgorithmIdentifier and the signature grow, but DER still governs how each element is laid out. RFC 9881 for ML-DSA and RFC 9909 for SLH-DSA define the object identifiers and encoding conventions, and RFC 9881 requires the ML-DSA AlgorithmIdentifier parameters to be absent. Teams reviewing a post-quantum certificate profile should confirm that their parsers, signing tools and certificate authorities implement those profiles, since an encoder that is correct for RSA or ECDSA can still mishandle larger or differently structured values.

Is DER a standard that post-quantum certificates must follow?

DER is not a standalone requirement that post-quantum certificates must meet. It is the encoding rule set defined in ITU-T X.690, and the relevant question for a reviewer is which documents make DER binding on a given certificate and which documents only build on it. The current edition of ITU-T X.690 is the 02/21 edition, with Erratum 1 (09/21) in force, and its full title is Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER). The 08/15 edition and earlier editions are superseded or withdrawn, so any reference to an older edition should be checked against the current one. ITU-T X.690 sets the rules, but a certificate profile is what decides where they apply.

The main profile that makes DER mandatory for certificates is RFC 5280, which is a Proposed Standard published in May 2008. Section 4 of RFC 5280 states that the signed data in a certificate is encoded using the ASN.1 distinguished encoding rules, and the signature is computed over the DER-encoded tbsCertificate. Certification requests follow the same pattern in RFC 2986, where the certificationRequestInfo is DER-encoded before signing. Teams inventorying PKI should record that a certificate is only verifiable as DER when its issuing software follows these profiles, and should confirm that their CA and client libraries produce DER output for the signed portion.

The post-quantum profiles build on this encoding rather than replacing it. RFC 9881 (October 2025) covers ML-DSA, RFC 9909 (December 2025) covers SLH-DSA, RFC 9935 (March 2026) covers ML-KEM, and RFC 10073 (November 2026) covers composite ML-DSA, and all four are Proposed Standards. None of them is binding on commercial organizations. A commercial team should treat them as the current IETF references for how post-quantum keys and signatures are carried in X.509, and should confirm with its CA or library vendor which of these profiles and OIDs a given product implements, since a Proposed Standard does not by itself mean a product supports it.

What should a migration team check about DER encoding?

This sequence confirms that every certificate, CSR and key in scope is read correctly as DER by the tools that handle it, including the RFC 9881 and RFC 9909 rules for post-quantum profiles and the variable-length rules for composite encodings. It ends with a tested issuance and parsing run that shows the inventory matches what the systems actually do.

  1. Sort inventory objects by encoding format

    Go through the certificate, CSR and key inventory and record, for each object, whether it is stored as DER binary or as PEM text. PEM is the base64 form of DER wrapped in labeled header and footer lines, such as CERTIFICATE or CERTIFICATE REQUEST, as RFC 7468 describes, so a PEM file still carries DER underneath. Mark any object whose format cannot be determined from its file extension or headers. The step is done when every inventory entry has a format value and the unknowns have an owner who will resolve them.

  2. Confirm the signed structure is DER

    Check that certificates and CSRs in the inventory are DER-encoded where the standards require it. RFC 5280 says the signed data in a certificate is encoded using DER, and RFC 2986 says the certificationRequestInfo of a PKCS #10 request is DER-encoded before signing. Use an ASN.1 dump tool on a sample of each object type to confirm the outer structure parses cleanly. The step closes when each object type has a dump that shows the expected SEQUENCE layout.

  3. Verify PQ certificate profiles parse as DER

    For ML-DSA, SLH-DSA and ML-KEM certificates, confirm that each tool in the chain reads the subjectPublicKey BIT STRING correctly. RFC 9881 says the ML-DSA subjectPublicKey holds the raw FIPS 204 public key bytes with no extra ASN.1 wrapping, so a parser that expects a nested structure will misread the key. Check the SLH-DSA and ML-KEM profiles against RFC 9909 and RFC 9935 in the same way. The step is done when each tool returns the public key length the profile specifies for the parameter set in use.

  4. Ask vendors about parameter and tag handling

    Send each vendor a written question asking whether their parser handles the RFC 9881 parameter rule, under which the ML-DSA AlgorithmIdentifier parameters are absent and the identifier is a SEQUENCE holding only the OID. Ask whether private key variants are distinguished by tag (0x80, 0x04 or 0x30) rather than by length heuristics, as RFC 9881 directs. Request the version and component that the answer applies to. The step closes when each vendor has answered in writing and the answers are filed with the inventory.

  5. Check composite encodings for variable component lengths

    For any composite certificate or key in scope, confirm how the parser splits the composite value into its components. RFC 10073 notes that RSA and ECDSA component encodings vary in length, so a strict length check on the full composite value cannot always be relied on. Ask the implementer which component boundaries the parser uses and whether it fails safely when a length differs from expectation. The step is done when the boundary method for each composite implementation is recorded and any parser that assumes fixed lengths is flagged.

  6. Test issuance and parsing with a sample certificate

    Before rollout, issue a sample certificate and a sample CSR using the target CA and tooling, then parse both with every tool that will handle them in production. Run the ASN.1 dump and the tool's own parser on each sample and compare the decoded fields with what the CA recorded. Record any mismatch in encoding, key length or tag handling. The step is done when every production tool reads the sample set without error and the results are kept as evidence for the migration record.

Where DER sits in a certificate and its signature

The diagram starts with the certificate's tbsCertificate, the to-be-signed portion, which is DER-encoded into bytes. The signature is then computed over those exact DER bytes using the subject's or issuer's private key, as RFC 5280 requires for certificates. The outer Certificate SEQUENCE combines the tbsCertificate, the signatureAlgorithm identifier and the signatureValue BIT STRING. Check that the signature was computed over the DER bytes you are inspecting, since any re-encoding changes the bytes and breaks verification. The result may be written as raw DER or as PEM with the CERTIFICATE label, per RFC 7468.

The DER-encoded tbsCertificate is signed, then wrapped in the outer Certificate SEQUENCE.

What do people ask about DER and its post-quantum use?

What does DER stand for in certificates?

DER stands for Distinguished Encoding Rules. It is one of the ASN.1 encoding rule sets that turn structured data into a defined sequence of bytes. The rule set is specified in ITU-T X.690 and ISO 8825-1, and RFC 5280 says the signed data in an X.509 certificate is encoded with it. For readers of a certificate, DER is the byte-level layout underneath the fields people look at, such as the subject, issuer and public key. When a vendor or spec says a structure is DER-encoded, it means the bytes follow those fixed rules, so two independent implementations can produce and check the same signature input.

Is DER the same as BER or CER?

No. DER, BER and CER are three rule sets in the same family, all specified in ITU-T X.690 and ISO 8825-1. BER (Basic Encoding Rules) allows more than one way to encode the same value. CER (Canonical Encoding Rules) is a stricter variant of BER. DER is a further restricted subset that allows only one encoding for each value, which is why certificate signatures are computed over DER output. The sources listed on this page do not describe how each variant affects message size. Check the encoding your certificate library produces before relying on a byte-level comparison.

Are post-quantum certificates DER-encoded?

Yes, the post-quantum certificate profiles build on the DER-encoded X.509 structure that RFC 5280 defines. RFC 9881 covers ML-DSA in X.509 certificates and CRLs, RFC 9909 covers SLH-DSA, and RFC 9935 covers ML-KEM algorithm identifiers. Each one defines the object identifiers and the key and signature encodings for its algorithm, while the outer certificate structure stays as RFC 5280 describes it. The practical question for a reviewer is whether a given product parses these DER structures correctly for each algorithm, so ask the vendor which RFCs its parser implements and test with certificates from each one.

Is PEM the same thing as DER?

No. PEM is a text wrapper around encoded data, not a separate encoding. RFC 7468 defines the textual encodings of PKIX, PKCS and CMS structures, using labels such as CERTIFICATE and CERTIFICATE REQUEST between BEGIN and END lines. The content inside a PEM block is normally DER, which is then base64-encoded so it can be pasted into text files. So a .pem file and a .der file can hold the same certificate, and converting between them does not change the signed content. Check which form a tool expects before loading a file, because a DER file opened as text will fail.

What should I ask a vendor about DER parsing for ML-DSA, SLH-DSA or ML-KEM certificates?

Ask which RFCs its parser implements for each algorithm, and whether it has been tested against certificates built from those RFCs. Ask for the object identifiers it accepts. For ML-DSA, RFC 9881 says the subjectPublicKey holds the raw FIPS 204 public key with no extra ASN.1 wrapping, and that the AlgorithmIdentifier parameters must be absent. Ask how the product tells ML-DSA private key variants apart, since RFC 9881 says parsers should use the tag (0x80, 0x04 or 0x30) rather than length heuristics. For SLH-DSA and ML-KEM, ask for the same checks against RFC 9909 and RFC 9935. Ask for a test report or a sample file set.

Does DER encoding change when post-quantum keys are larger?

The encoding rules stay the same, but the sizes change. DER is the same rule set whatever the key length, so a larger key is written with the same structure and more bytes. RFC 9881 Table 2 gives ML-DSA public key and signature sizes, such as 1312 and 2420 bytes for ML-DSA-44, and 2592 and 4627 bytes for ML-DSA-87. RFC 9909 Table 1 gives SLH-DSA signature sizes from 7856 bytes (128s) to 49856 bytes (256f). Larger certificates can affect handshake sizes, storage and tooling limits, so measure the certificates you actually issue rather than assume the table sizes apply to your chain.

Where can I read the DER standard myself?

Start with ITU-T X.690, titled Specification of Basic Encoding Rules (BER), Canonical Encoding Rules (CER) and Distinguished Encoding Rules (DER), in its 02/21 edition with Erratum 1 in force. The notation itself is defined in ITU-T X.680, and the ITU-T's ASN.1 introduction gives an overview of the wider rule family, including PER, XER and OER. For how DER is used in certificates, read RFC 5280, which profiles X.509 for Internet use. Use the document numbers and editions above when you check a vendor's claims against the source, and confirm which edition your organization follows.

How DeployOpen helps teams check DER handling in post-quantum migrations

DeployOpen treats DER as a specific encoding that certificate and key tooling must produce and parse correctly once post-quantum keys and signatures are added. Work is scoped around the certificates, key files and signing paths a team actually runs, and checked against the RFCs that define how those structures are encoded.

How we scope

  • Inventory which certificate, CSR and key formats your systems generate, store and parse today.
  • Identify which PKI tools, libraries and issuing workflows encode signed data with DER.
  • Agree in writing which DER-encoded structures are in scope, with deliverables and timelines fixed before work starts.

How we build

  • Test how your toolchain DER-encodes the tbsCertificate and CSR info that carry post-quantum public keys.
  • Check parsers against the rules in RFC 9881 and RFC 9909 for absent parameters and key tagging.
  • Configure issuance and signing paths so encoded output matches the profiles your teams and auditors expect.

How we hand over

  • Deliver a written record of each DER-encoded structure reviewed, with the tool and version tested.
  • Document which parsers, libraries or formats were found not to handle larger post-quantum keys correctly.
  • Provide fixes and a retest so your team can confirm the encoding behaves as documented after changes.

How we support

  • Offer ongoing support as a retainer for upgrades to PKI tooling that change how DER output is produced.
  • Retest encoding paths when libraries, issuing software or certificate profiles are updated in your environment.
  • Confirm with your own vendors and the RFC texts which encoding behavior each version of your stack supports.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.