>_ IzzyLab

Topic breakdown

The same certificate — an ASN.1 structure — is stored in two encodings: DER is the raw binary bytes, while PEM is those same bytes in base64, wrapped in text BEGIN/END frames. During conversion the content does not change, only the packaging does, and it is needed because some systems (Java keystore, a number of Windows utilities) want binary DER specifically. The essence of the task is to control the input and output format with the -inform/-outform flags of the certificate command openssl.

What's checked

  1. cert.der reads as a DER certificate
  2. the format is binary (not PEM)
  3. it's the same certificate as cert.pem

What it looks like