Install OpenSSL on Windows and use OpenSSL to generate public and private keys

Install OpenSSL on Windows and use OpenSSL to generate public and private keys

1. OpenSSL official website

Official download address: https://www.openssl.org/source/

2. Windows installation method

The OpenSSL official website does not provide a Windows version installation package, but you can choose tools provided by other open source platforms. For example http://slproweb.com/products/Win32OpenSSL.html

Taking this tool as an example, the installation steps and usage methods are as follows:

2.1 Select the appropriate 32-bit or 64-bit version to download, for example, Win64OpenSSL_Light-1_0_2h.exe:


Install OpenSSL on Windows

2.2 Set environment variables. For example, if the tool is installed in C:\OpenSSL-Win64, copy C:\OpenSSL-Win64\bin to Path.


widnows system sets OpenSSL environment variables

2.3 Open the command line program cmd (run as administrator) and run the following command:

The path here is the save address

Generate public and private keys using openssl

Generate a private key: openssl genrsa -out rsa_private_key.pem 1024

Generate a public key: openssl rsa -in rsa_private_key.pem -pubout -out rsa_public_key.pem

You may also be interested in:
  • Windows installation and configuration of C/C++ (VS2017) OpenSSL development environment configuration tutorial
  • How to enable openssl in php
  • How to install Nginx under Linux (pcre and openssl)
  • Detailed explanation of how to use OpenSSL instead of Mcrypt for encryption and decryption in PHP 7.1
  • PHP implements encryption and decryption methods based on openssl
  • How to install openssl extension in php7
  • Detailed explanation of using openSSL library AES module to implement encryption function in C language
  • Detailed explanation of the installation of OpenSSL in Linux (centos7)
  • How to add openssl module to PHP without recompiling PHP
  • Linux openssl basic introduction
  • A Python script to detect the OpenSSL Heartbleed vulnerability
  • PHP RSA encryption and decryption example based on OpenSSL
  • Detailed explanation of PHP PKI encryption technology (openssl)
  • Analyze the role of php_openssl.dll in php
  • Summary of using PHP's openssl encryption extension (recommended)
  • Detailed explanation of using DES module of openSSL library to implement encryption function in C language
  • How to generate a free certificate using openssl

<<:  Analysis of the difference between emits and attrs in Vue3

>>:  A Brief Analysis of MySQL - MVCC

Recommend

A brief analysis of the usage of HTML float

Some usage of float Left suspension: float:left; ...

Example of adding and deleting range partitions in MySQL 5.5

introduce RANGE partitioning is based on a given ...

Detailed tutorial on how to create a user in mysql and grant user permissions

Table of contents User Management Create a new us...

How to write the style of CSS3 Tianzi grid list

In many projects, it is necessary to implement th...

Sample code for installing Jenkins using Docker

Two problems that are easy to encounter when inst...

javascript Blob object to achieve file download

Table of contents illustrate 1. Blob object 2. Fr...

CocosCreator classic entry project flappybird

Table of contents Development Environment Game en...

Solve the Linux Tensorflow2.0 installation problem

conda update conda pip install tf-nightly-gpu-2.0...

Detailed explanation of MySQL database isolation level and MVCC

Table of contents 1. Isolation Level READ UNCOMMI...

JavaScript object built-in objects, value types and reference types explained

Table of contents Object Object Definition Iterat...

Detailed process of installing the docker plugin in IntelliJ IDEA (2018 version)

Table of contents 1. Development Environment 2. I...

Steps to change mysql character set to UTF8 under Linux system

Table of contents 1. Check the MySQL status in th...

Native JS to implement click number game

Native JS implements the click number game for yo...