Windows RSA key Generation tool OpenSSL

Source: Internet
Author: User
Tags key string openssl rsa

Download Openssl.zip

1. Generate the original RSA private key file Private_key.pem

OpenSSL genrsa-out Private_key.pem 1024

2. Convert the original RSA private key to PKCS8 format

OpenSSL pkcs8-topk8-inform pem-in private_key.pem-outform pem-nocrypt-out Rsa_private_key.pem

3. Generate RSA Public key RSA_PUBLIC_KEY.PEM

OpenSSL rsa-in private_key.pem-pubout-out rsa_public_key.crt

4. Get the hexadecimal public key from the public key RSA_PUBLIC_KEY.PEM (first 16 binary string)

OpenSSL asn1parse-out temp.ans-i-inform Pem<private_key.pem

Final Get file list:

Rsa_private_key.pem

Rsa_public_key.crt

16 binary Public key string for JS-side encryption

Windows RSA key Generation tool OpenSSL

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.