首页 > 其他 > 详细

Openssl pkcs7命令

时间:2016-03-21 23:09:06      阅读:460      评论:0      收藏:0      [点我收藏+]

一、简介

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        dont 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

 

四、知识扩展

1)PKCS7 的 attached 和 detached 方式的数字签名

 

 

Openssl pkcs7命令

原文:http://www.cnblogs.com/274914765qq/p/5304148.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!