码迷,mamicode.com
首页 > 其他好文 > 详细

Openssl dsaparam命令

时间:2015-07-25 13:36:20      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:

一、简介

dsaparam指令用来生成和操作dsa参数

 

二、语法

openssl dsaparam [-inform DER|PEM] [-outform DER|PEM] [-in filename ] [-out filename] [-noout] [-text] [-C] [-rand file(s)] [-genkey] [-engine id] [number] [-timebomb n]

选项

 -inform arg   input format - DER or PEM
 -outform arg  output format - DER or PEM
 -in arg       input file
 -out arg      output file
 -text         print as text
 -C            Output C code
 -noout        no output
 -genkey       generate a DSA key
 -rand         files to use for random number input
 -engine e     use engine e, possibly a hardware device.
 number        number of bits to use for generating private key

 

三、实例

1、生成DSA密钥

openssl dsaparam -genkey 512 -out dsaprikey.pem

2、查看DSA密钥信息

openssl dsaparam -in dsaprikey.pem –text

 

Openssl dsaparam命令

标签:

原文地址:http://www.cnblogs.com/274914765qq/p/4675631.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!