Compiling the OpenSSL 1.1.0 with Visual Studio under Windows

Source: Internet
Author: User
Tags openssl enc perl interpreter

Download OpenSSL source code package to OpenSSL official website

1. Download openssl-1.1.0.tar.gz

2, install ActivePerl, you can download the latest version to http://www.activestate.com/activeperl/downloads, need to use the Perl interpreter.

Note: Perl minimum version requires more than 5.10, Windows XP users last support version ActivePerl 5.20.2.2002 version

3. Use Visual Studio Command Prompt under VS2010 to enter the console mode (this mode will automatically set up various environment variables, according to compile 32-bit, 64-bit, Itanium own choice).

4, installation Dmake,ppm install dmake

5. Unzip the OpenSSL source code package and enter the root directory of OpenSSL, such as E:\openssl-1.1.0.

6.Perl Configure Vc-win32

The command must be executed under the c:\openssl-1.1.0 directory, or the Configure file cannot be found, and the full Configure file path must be specified.

64 Compile the words win64/x64 execute perl Configure vc-win64a;win64/ia64 execute Perl Configure vc-win64i.

7, before the official compilation

(1). Locate the c:\openssl-1.1.0\configdata.pm and c:\openssl-1.1.0\makefile two files, open with Notepad, search for "/MD" string, replace with "/MT", which will cause static link C to run, avoiding the Install the VC redistribution package on the target machine and so on.

8. Compiling, nmake

9, compile, nmake test

10, compile, nmake install

Note: OpenSSL 1.1.0 started from the original Libeay32.dll, Ssleay32.dll into Libcrypto-1_1.dll, Libssl-1_1.dll, some encryption methods have also changed.

such as the original:

C:\>echo Test|openssl enc-base64-aes-256-cbc-k 123 Get ciphertext:

u2fsdgvkx19hgmwgelrw6kiovhxkrz1kembcrfuvfh8=

Then execute c:\>echo u2fsdgvkx19hgmwgelrw6kiovhxkrz1kembcrfuvfh8=|openssl enc-base64-aes-256-cbc-k 123-d Decryption gets the original text:

Test

However, decryption in 1.1.0 will fail.

Compiling the OpenSSL 1.1.0 with Visual Studio under Windows

Related Article

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.