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

Detailed explanation of the misunderstanding between MySQL and Oracle

Table of contents Essential Difference Database s...

Common properties of frameset (dividing frames and windows)

A frame is a web page screen divided into several ...

Getting Started Tutorial on Animating SVG Path Strokes Using CSS3

Without relying on JavaScript, pure CSS is used t...

Introduction to the role of HTML doctype

Document mode has the following two functions: 1. ...

Complete steps to install Anaconda3 in Ubuntu environment

Table of contents Introduction to Anaconda 1. Dow...

How to install MySQL 8.0.13 in Alibaba Cloud CentOS 7

1. Download the MySQL installation package (there...

Weird and interesting Docker commands you may not know

Intro Introduces and collects some simple and pra...

Basic usage of JS date control My97DatePicker

My97DatePicker is a very flexible and easy-to-use...

Detailed explanation of JavaScript upload file limit parameter case

Project scenario: 1. Upload file restrictions Fun...

Two ways to install Python3 on Linux servers

First method Alibaba Cloud and Baidu Cloud server...

Vue integrates a rich text editor that supports image zooming and dragging

need: According to business requirements, it is n...

How to remove the underline of a hyperlink using three simple examples

To remove the underline of a hyperlink, you need t...

Angular framework detailed explanation of view abstract definition

Preface As a front-end framework designed "f...

Record a troubleshooting record of high CPU usage of Tomcat process

This article mainly records a tomcat process, and...