CA.pl -newreq (openssl req -config /etc/openssl.cnf -new -keyout newreq.pem -out newreq.pem \ -days 365) |
CA.pl -sign (openssl ca -config /etc/openssl.cnf -policy policy_anything -out newcert.pem \ -infiles newreq.pem) |
您的私钥在 newreq.pem 文件中 -PRIVATE KEY-,您的证书在 newcert.pem 文件中 -CERTIFICATE-
newcert.pem 的副本被放置在 newcerts/ 目录中,并在 index.txt 中添加了相应的条目,以便客户端可以通过 Web 服务器请求此信息,以确保证书的真实性。
openssl -revoke newcert.pem |
数据库已更新,证书被标记为已吊销。您现在需要生成新的已吊销证书列表
openssl ca -gencrl -config /etc/openssl.cnf -out crl/sopac-ca.crl |
openssl ca -gencrl -config /etc/openssl.cnf -crldays 7 -crlexts crl_ext \ -out crl/sopac-ca.crl |
用户向您发送其旧的证书请求,或基于其私钥创建一个新的证书请求。
要查找旧证书,请在 index.txt 文件中查找与请求对应的专有名称 (DN)。获取序列号 <xx>,并使用文件 cert/<xx>.pem 作为吊销过程的证书。
您可能需要手动签署请求,因为您必须确保新证书的有效期开始日期和结束日期是正确的。
openssl ca -config /etc/openssl.cnf -policy policy_anything -out newcert.pem \ -infiles newreq.pem -startdate [now] -enddate [previous enddate+365days] |