Openssl pkey Command

Source: Internet
Author: User

First, Introduction

Pkey is a public or private key processing command that can be used to print and convert different forms and components

Second, the grammar

OpenSSL Pkey [-inform pem| DER] [-outform pe| DER] [- in filename] [-passin arg] [-out filename] [-passout arg] [ID]

Options

-infile        file-inform X       input format (DER or PEM)-passin arg     file  Pass phrase source-outform X      output format (DER or PEM)file       file -passout arg    file  Pass phrase source-engine e use       engine E, possibly a hardware dev Ice.

Third, examples

1. Remove the RSA key input password

OpenSSL Pkey- in Prikey.pem-out Keyout.pem

2. Encrypt the private key

OpenSSL pkey– in Prikey.pem-des3-out Keyout.pem

3. Pem format private key converted to DER format private key

OpenSSL pkey– in Prikey.pem-outform der–out prikey.der

4. Extracting the public key from the private key

OpenSSL pkey– in Prikey.pem-pubout-out Pubkey.pem

Reference: http://blog.csdn.net/as3luyuan123/article/details/16330909

Openssl pkey Command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.