win10+vs2017 Environment to build OpenSSL

Source: Internet
Author: User
Tags visual studio installer

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

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.