Collections:
Other Resources:
OpenSSL "req -x509 -days" - Longer Self-Signed Certificate
Can I sign my own CSR with a longer expiration date using the OpenSSL "req -x509" command? I want to use this certificate as an internal root CA for 10 years.
✍: FYIcenter.com
Yes, you can sign you own CSR (Certificate Sign Request) with a longer expiration date
using the OpenSSL "req -x509 -days" command as shown below.
Without the "-days" option, the resulting certificate is only valid for 30 days.
See the example below:
C:\Users\fyicenter>\local\openssl\openssl.exe OpenSSL> req -x509 -in rsa_test.csr -key rsa_test.key -out rsa_test.crt -days 3650 Enter pass phrase for rsa_test.key:fyicenter OpenSSL> x509 -in rsa_test.crt -dates -noout notBefore=Aug 21 13:26:41 2016 GMT notAfter=Aug 19 13:26:41 2026 GMT
⇒ OpenSSL "req -x509 -set_serial" - Certificate Serial Number
2016-11-11, ∼4834🔥, 0💬
Popular Posts:
Certificate Summary: Subject: Sonera Class1 CA Issuer: Sonera Class1 CA Expiration: 2021-04-06 10:49...
Certificate Summary: Subject: sni.cloudflaressl.com Issuer: CloudFlare Inc ECC CA-2 Expiration: 2019...
Certificate summary - Owner: *.gameforge.com, Domain Control Validated - RapidSSL(R), See www.rapids...
How to generate a new RSA key pair with a different public exponent using OpenSSL "genpkey" command?...
Certificate summary - Owner: *.bing.com Issuer: MSIT Machine Auth CA 2, Dredmond, Dcorp, Dmicrosoft,...