Table of Contents
genrsa – generate an RSA private key
1 2 3 4 |
openssl genrsa [-out filename] [-passout arg] [-des] [-des3] [-idea] [-f4] [-3] [-rand file(s)] [-engine id] [numbits] |
产生私钥
1 2 3 |
openssl genrsa 1024 > private_key |
rsa – RSA key processing tool
1 2 3 4 5 |
openssl rsa [-inform PEM|NET|DER] [-outform PEM|NET|DER] [-in filename] [-passin arg] [-out filename] [-passout arg] [-sgckey] [-des] [-des3] [-idea] [-text] [-noout] [-modulus] [-check] [-pubin] [-pubout] [-engine id] |
rsautl – RSA utility
1 2 3 4 |
openssl rsautl [-in file] [-out file] [-inkey file] [-pubin] [-certin] [-sign] [-verify] [-encrypt] [-decrypt] [-pkcs] [-ssl] [-raw] [-hexdump] [-asn1parse] |
1 2 3 |
签名 |
1 2 3 |
openssl rsautl –in |