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