Certificate & File Practice · Ch. 1
Can a CSR set certificate validity? SAN and OpenSSL checks
WebTool Team · Published 2026-10-12 · SSL / CSR / OpenSSL
A CSR does not contain the issued certificate's notBefore and notAfter values. The issuer chooses the validity period; check the actual certificate after issuance. Use the local CSR generator, CSR parser and certificate parser for each stage.
Check the request
Verify the public-key algorithm and parameters, subject information, and SAN domain list. A valid CSR signature is not CA identity approval. Requested extensions are also not proof that the issuer will include them unchanged.
Create a sample request
Use fictional domains and keep the private key on your own device. Submit the CSR, not the private key.
openssl req -new -newkey rsa:2048 -keyout example.key -out example.csr \
-subj "/CN=example.com" \
-addext "subjectAltName=DNS:example.com,DNS:www.example.com"
openssl req -in example.csr -noout -text -verify
The first command requests a key-protection password. In the browser workflow, select a new or existing key, enter each SAN, generate the request, then parse it before submission.
Check the issued certificate
openssl x509 -in issued.pem -noout -dates -subject -issuer
openssl x509 -in issued.pem -noout -ext subjectAltName
Request a desired lifetime through the CA's application workflow. Changing the CSR cannot set the final dates. A self-signed generator's days setting applies to your own issuance, not a public CA's decision.
Match the public keys
These two DER public-key digests should match. If they differ, check whether the key, request or certificate belongs to a different application.
openssl pkey -in example.key -pubout -outform DER | openssl dgst -sha256
openssl x509 -in issued.pem -pubkey -noout | openssl pkey -pubin -outform DER | openssl dgst -sha256
Parsing exposes fields; it does not perform full chain, hostname, purpose or revocation validation. Self-signing does not create public browser trust. WebTool SSL pages process keys and passwords locally and disable analytics.
References
Try the tools in this tutorial
Create a local CSR and private key with DNS/IP SANs using RSA, ECC P-256/P-384 or SM2.
CSR Parser & Signature CheckerParse a PEM/DER CSR, show subject, public key and DNS/IP SANs, and verify its embedded signature locally.
SSL Certificate DecoderParse X.509 PEM/DER certificates locally to inspect subject, issuer, validity, public key, SANs, fingerprints and common extensions.