Openssl dsaparam命令

一、简介

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)