标签:
一、简介
crl2pkcs7命令根据CRL或证书来生成pkcs#7消息
二、语法
openssl crl2pkcs7 [-inform PEM|DER ] [-outform PEM|DER ] [-in filename ] [-out filename ] [-certfile filename ] [-nocrl ]
选项
-inform arg input format - DER or PEM -outform arg output format - DER or PEM -in arg input file -out arg output file -certfile arg certificates file of chain to a trusted CA (can be used more than once) -nocrl no crl to load, just certs from ‘-certfile‘
三、实例
1、用一个CRL文件创建一个PKCS#7结构,只包含crl信息
openssl crl2pkcs7 -in crl.crl -out crlpkcs7.pem
2、用一个证书和CRL文件创建一个PKCS#7结构,只包含证书信息
openssl crl2pkcs7 -in crl.crl -certfile demoCA/ca cert.pem -out certpkcs7.pem –nocrl
3、用一个证书和CRL文件创建一个PKCS#7结构,同时包含证书信息和crl信息
openssl crl2pkcs7 -in crl.crl -certfile demoCA/ca cert.pem -out crlcertpkcs7.pem
标签:
原文地址:http://www.cnblogs.com/274914765qq/p/4674972.html