大网数据广告活动
服务器运维问答

How do I change the expiration of CRLs with OpenSSL?

· 52CE 我爱测

I am currently experimenting with my self signed CA. But in order for my devices to work I need a valid CRL. I set the CDP to one of the CDN hosting providers. As I have only 5 certificates issued I have little chance of getting …

问题原文

原帖链接 · manatails · CC BY-SA 3.0

I am currently experimenting with my self signed CA.

But in order for my devices to work I need a valid CRL.

I set the CDP to one of the CDN hosting providers. As I have only 5 certificates issued I have little chance of getting one of them revoked, so I would like to issue a long validity CRL and update it as I need it.

How can I do that with OpenSSL and how is the default expiration calculated?

I see that the crlnumber file increases and certutil displays something like

Base CRL(1014) time:11

已采纳解答

原帖链接 · Bruno Mairlot · CC BY-SA 4.0

The default is 30 days.

To change the nextUpdate field, you may use the -crldays option of the openssl ca command like this :

openssl ca -gencrl -crldays 120 -config /path/to/openssl.conf -keyfile /path/to/private/key.file -passin pass:plaintextpassword -out /path/to/crl.pem

If you don't want to specify this every time the CRL is generated, you can change this in openssl.cnf via "default_crl_days= 30" (this is the default setting) and then change it to whatever you want.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2015-03-01)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。