OpenSSL source code is compiled in windows and OpenSSL Windows installation files

Source: Internet
Author: User
Tags install openssl openssl windows install perl

Install OpenSSL in windows today.
Prerequisites: VC ++ 6.0 is installed (the tool is used for configuration)
Resource:
Openssl-0.9.8e
ActivePerl-5.8.8.822-MSWin32-x86-280952
Process:
I. Preparation: download and install Perl, unzip the openssl-0.9.8e
2. Run "cmd", CD to change the directory to the directory where the openssl-0.9.8e source code is located
3. Execute "Perl configure VC-WIN32 -- prefix = C:/openssl-0.9.8e" to specify the installation path after OpenSSL compilation.
4. Run "Ms \ do_ms"
5. Run "nmake-F Ms \ NTDLL. Mak"
1. "nmake is not an internal or external command or. BAT file"
Solution: nmake.exe file. The file should be located in the c: \ Program Files \ Microsoft Visual Studio \ vc98 \ bin directory. Configure the environment variables. Operation: Right-click my computer --> properties --> advanced --> environment variable -- System variable (find path) --> edit, set C: \ Program Files \ Microsoft Visual Studio \ vc98 \ bin is added to the end (note that it should be separated from the previous path with ";" and ended with ";". Finally, please remind me that, you must restart the machine to make the new path take effect;
2. To solve the problem, run the "nmake-F Ms \ ntdll.mak.pdf" command again to find the warning box. If it is cl.exe, the system prompts that mspdb60.dll is missing.
To solve the problem of missing mspdb60.dll, copy the mspdb60.dll file under \ common \ msdev98 \ bin to c: \ Program Files \ Microsoft Visual Studio \ vc98 \ bin, and then run vc6.0.
3. Solve the Problem and run the "nmake-F Ms \ NTDLL. Mak" command again,
"MS \ uplink. C (11): Fatal error c1083: cannot open include file: 'windows. h': no such file or directory nmake: Fatal error u1077: 'cl': return code '0x2 'stop."
Solution: RunVcvars32 command,Vcvars32.bat is used to set the environment variables for VC command line compilation.
Run the "nmake-F Ms \ NTDLL. Mak" command again. Execution passed
4. check whether it is successful and run the command: "nmake-F Ms \ NTDLL. Mak test ".
6. Run "nmake-F Ms \ NTDLL. Mak install" to install the compiled OpenSSL file to the specified directory.
7. view the installation Result c: \ openssl-0.9.8.e contains three folders bin, include, Lib. Binpackage openssl.exe (OpenSSL commandProgram), Ssleay32.dll (SSL protocol dynamic library), libeay32.dll (PasswordAlgorithmLibrary ). Lib includes libeay32.lib and ssleay32.lib. The include Directory includes the header file for OpenSSL development and design.
So far, OpenSSL has been compiled in windows.

Development Environment Configuration

In a created Project, on the menu bar, tools -- options -- directory sets include and lib to specify the folders include and lib that are included in the C: \ openssl-0.9.8.e.
Make a simple test program and set the connection as shown in Figure

 

 

This document is excerpted from: OpenSSL installation and development environment configuration in Windows (original)


Supplement:
1. the commands in step 1 must be case sensitive;
2. In Step 5.3, the system may prompt that different files are not found. In this case, you can try the "vcvars32" command several times. Prompt when compiling to step 5.3 at the beginningEc_privatekey_it redefinitionThe reason is that the command entered in step 1 is incorrect,Case Sensitive.
3. The above IDE is vc6.0, or vs2008 can be used. Other ides are not tested, but remember to set the environment variables in step 1. If the "return code"... 'Stop "error occurs during ide compilation other than vc6.0, run the" vcvars32 "command again.
4. If you are not familiar with using this compilation method in Linux in Windows (in fact, the underlying windows is also like this, but Microsoft's ide blocks it ), you can download the OpenSSL Windows Installation File. Please search for the "win32openssl" keyword by yourself.
5. With the ready-made encryption and decryption, you don't have to implement it on your own. And now SSL is so widely used, should there be no vulnerabilities? Next, we will explain how to use OpenSSL.

 

[Thank you for your reference]
1. OpenSSL installation and development environment configuration in Windows (original)
2. OpenSSL compilation error, "ecpkparameters_it": redefinition

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.