opyeb pemcheck

pemcheck · Guides

Five rules for reading a certificate

The format, validity, chain, name and algorithm checks that matter when you handle X.509 and TLS certificates.

PEM formats, expiry management, chain order, SAN matching and signature algorithms, written per topic. Every article starts with a one-line answer.

Format and structure

FormatPEM, DER, CRT, CER, CSR — read the label, not the extensionPEM is a base64 envelope around DER; .crt and .cer usually hold the same certificate, and a CSR is a signed request.OperationsCertificate expiry — what to check 30 and 7 days outExpiry is the single instant NotAfter. Renew at D-30, confirm deployment at D-7, and after expiry inspect what the server actually sends.

Operations and expiry

VerificationChain order — linking leaf, intermediate and rootA chain runs leaf → intermediate → root: each issuer must equal the next subject, and servers normally omit the root.

Verification and algorithms

VerificationSAN and hostname matching — a wildcard covers exactly one labelHostnames are checked against SAN only. *.example.com matches a.example.com, not a.b.example.com.AlgorithmsKeys and signatures — RSA, ECDSA, Ed25519 and the end of SHA-1RSA needs 2048 bits or more, ECDSA P-256 or stronger, Ed25519 is 256 bits — and SHA-1 signatures are no longer safe.

Paste your own certificate and see.

Open the checker