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

CSS3 sample code to achieve element arc motion

How to use CSS to control the arc movement of ele...

A brief discussion on JavaScript throttling and anti-shake

Table of contents Throttling and anti-shake conce...

How to embed other web pages in a web page using iframe

How to use iframe: Copy code The code is as follo...

Analysis of MySQL user management operation examples

This article describes the MySQL user management ...

Vue 2.0 Basics in Detail

Table of contents 1. Features 2. Examples 3. Opti...

Introduction to using the MySQL mysqladmin client

Table of contents 1. Check the status of the serv...

Analysis of MySQL's planned tasks and event scheduling examples

This article uses examples to describe MySQL'...

CSS Back to Top Code Example

Most websites nowadays have long pages, some are ...

5 ways to achieve the diagonal header effect in the table

Everyone must be familiar with table. We often en...

Example of how to build a Harbor public repository with Docker

The previous blog post talked about the Registry ...

How to implement horizontal bar chart with percentage in echarts

Table of contents Example Code Rendering Code Ana...

How to open external network access rights for mysql

As shown below: Mainly execute authorization comm...

A brief discussion on the correct posture of Tomcat memory configuration

1. Background Although I have read many blogs or ...

A practical record of checking and processing duplicate MySQL records on site

Table of contents Preface analyze Data Total Repe...