OpenSSL compilation and Configuration

Source: Internet
Author: User

OpenSSL compilation and Configuration

Reprinted please indicate the source: http://blog.csdn.net/zhangyang0402

I. Compile OpenSSL in Windows
1. Download and install ActivePerl
2. Download OpenSSL and decompress it using winrar.
3. Use a command prompt to enter the OpenSSL directory and perform the following operations:

(1) execute configure
Perl configure VC-WIN32 -- prefix = C:/openssl-0.9.8k

(2) run the do_ms batch processing in the MS directory.
MS/do_ms

(3) execute make to compile
Nmake-f ms/NTDLL. Mak

(4) test whether the compilation is successful
Nmake-f ms/NTDLL. Mak Test

(5) install to a specified directory
Nmake-f ms/NTDLL. Mak install

4. Check whether the installation is successful.
Under the C:/openssl-0.9.8k directory, three folders are generated: Bin, include, lib

Bin directory: openssl.exe, libeay32.dll, ssleay32.dll
Include Directory: There is an OpenSSL directory with many header files
Lib directory: libeay32.lib, ssleay32.lib

 

2. Configure the OpenSSL Working Environment (VC ++ 6.0)
1. dll
DLL to be used (libeay32.dll, ssleay32.dll) copy to the directory containing the EXE file, the current working directory of the process, the Windows System directory, the Windows directory, or set the dll Directory to the path environment variable (restart required ).

2. Include
In VC ++ 6.0, tools-> options-> directories-> include files contains a new directory.
C:/openssl-0.9.8k/include;

3. Lib
In VC ++ 6.0, tools-> options-> directories-> library files contains a new directory.
C:/openssl-0.9.8k/lib.

CompileProgramAdd the corresponding library to project-> Settings-> link-> Object/library modules or use # pragme comment (Lib, "***. lib") to introduce

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.