Cryptography guides

Compare a certificate request with the intended names

·

Before submitting a signing request, compare its requested names and key with your deployment plan. A PKCS#10 request contains a subject, a public key and optional attributes. Its signature provides a separate check of the request information.

CSR Decoder

Compare the subject and three requested names

Use Download example CSR in the workspace, switch Input format to PEM or DER file, and select lantern-certificate-request.pem. Choose Read request. The subject lists Lantern Lab and storefront.example.test.

Check the requested alternative names separately. The example has two DNS names, storefront.example.test and assets.example.test, and an IP address, 192.0.2.42. The SAN extension has OID 2.5.29.17. Compare every requested name against the service inventory before submission.

Decoded names from the public example
DNS storefront.example.test
DNS assets.example.test
IP  192.0.2.42

RFC 2986, PKCS#10 Certification Request Syntax

Check the signature using the request's public key

Enable Verify request signature and read the example again. The sample uses a P-256 EC public key and an ECDSA signature with SHA-256. Expect Verified.

The verification establishes a mathematical match between the included key and signed request information. Certification authorities apply separate rules for identity, name authorization and issuance. Compare any issued certificate with the request after it arrives.

RFC 2986, PKCS#10 Certification Request Syntax

Compare PEM and DER copies with the request fingerprint

PEM puts Base64 around DER request bytes. Convert the sample to DER with the OpenSSL command below and read the resulting file. The request SHA-256 fingerprint and DER length should match the PEM report.

Download JSON report when both copies agree. The report includes subject names and requested extensions. It shows only OIDs for request attributes, which can carry other values in the original CSR.

Convert the public practice CSR to binary DER
openssl req -in lantern-certificate-request.pem -outform DER -out lantern-certificate-request.der

RFC 7468, PKCS#10 textual encoding

Common questions

Why is there no certificate expiration date?

PKCS#10 carries request information. The issued X.509 certificate carries a validity interval.

What is the difference between Unavailable and Does not match?

Unavailable means the browser or decoder could not perform the check. Does not match means it ran the check and the signature failed.

Sources

Put it into practice.

Related guides