1、簡介spa
crl命令用於處裏PME或DER格式的CRL文件.net
2、語法3d
openssl crl [-inform PEM|DER] [-outform PEM|DER] [-text] [-in filename] [-out filename] [-hash] [-fingerprint] [-issuer ] [-lastupdate ] [-nextupdate ] [-crlnumber] [-noout ] [-CAfile file ] [-CApath dir ] [-nameopt arg] [-verify]
選項code
-inform arg - input format - default PEM (DER or PEM) -outform arg - output format - default PEM -text - print out a text format version -in arg - input file - default stdin -out arg - output file - default stdout -hash - print hash value -fingerprint - print the crl fingerprint -issuer - print issuer DN -lastupdate - lastUpdate field -nextupdate - nextUpdate field -crlnumber - print CRL number -noout - no CRL output -CAfile name - verify CRL using certificates in file "name" -CApath dir - verify CRL using certificates in "dir" -nameopt arg - various certificate name options
3、實例orm
一、驗證CRLblog
openssl crl -in crl.crl -CAfile demoCA/cacert.pem -noout
二、PEM格式的CRL文件轉換爲DER格式ssl
openssl crl -in crl.crl -outform DER -out crl.der
三、查看CRL信息get
openssl crl -in crl.crl -text -issuer -hash -lastupdate -nextupdate