您的位置:首页 > 运维架构

Openssl pkcs7命令

2015-07-24 22:22 417 查看
一、简介

pkcs7命令用于处理DER或者PEM格式的pkcs#7文件

二、语法

openssl pkcs7 [-inform PEM|DER] [-outform PEM|DER] [-in filename] [-out filename] [-print] [-print_certs] [-text] [-noout] [-engine id]


选项

-inform arg   input format - DER or PEM
-outform arg  output format - DER or PEM
-in arg       input file
-out arg      output file
-print_certs  print any certs or crl in the input
-text         print full details of certificates
-noout        don't output encoded data
-engine e     use engine e, possibly a hardware device.


三、实例

1、把一个PKCS#7文件从PEM格式转换成DER格式

openssl pkcs7 -in file.pem -outform DER -out file.der






2、 打印PKCS#7格式CRL列表

openssl pkcs7 -in crlpkcs7.pem -print_certs


参考:http://blog.csdn.net/as3luyuan123/article/details/16105407
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: