Because recently in the rapid application development, release to generate a private key and signature, on the Internet to find some information on their computers on the computer set up the OpenSSL, more online information, but there are many pits, so do a little summary of it
Local Environment: WINDOW10 Professional Edition vs2017
There are 2 ways to build the environment:
The first type:
https://slproweb.com/products/Win32OpenSSL.html for download, light is lightweight, can be downloaded according to your choice,
After downloading, installs, for example installs in the C disk, then the path is C:\OpenSSL-Win64, at this time the running program is C:\OpenSSL-Win64\bin\openssl.exe
We only need to add C:\OpenSSL-Win64\bin\ to the computer environment variable path to generate the certificate through the CMD Command management tool
The second type:
1. Install the latest version of ActivePerl
2. Download the latest OpenSSL source to https://www.openssl.org
3. Download the NASM Assembler tool to http://www.nasm.us
After the download is complete, install ActivePerl (note tick option, automatically add the path to the system environment variable path, otherwise you have to manually add) and Nasm (need to manually add to the environment variable)
In the Red box: (!!!) The blue box is the last action, regardless of the first step)
When this is done, unzip the openssl-1.1.1-pre9.tar.gz, for example, I unzipped it and put it in the C:\OpenSSL directory.
Then find the x64 Native tool command Prompt tool for VS 2017 via the Window menu
Focus: Open Visual Studio Installer confirm that desktop development using C + + is installed
After opening the command tool, go to the Directory C:\OpenSSL directory (which is the directory you just unzipped)
Then execute the command in turn:
Perl Configure vc-win64a-prefix=c:\opensslnmake NMAKE test nmake install
Finally, OpenSSL will be installed in the C-drive programs directory.
Finally, you can set the environment variable
Finally, we test, the private key generation is successful, only need to fill in the information to generate the certificate.
win10+vs2017 Environment to build OpenSSL