OpenSSL installation and programming in Windows

Source: Internet
Author: User

1. Install VC ++ 6.0.
2, download the ActivePerl-5.8.0.806-MSWin32-x86 and install:

Http://www.sogoz.info/down.asp? Id = 3683 & NO = 1

3. Download openssl0.98 and decompress it.

Http://www.openssl.org/source/openssl-0.9.8.tar.gz


Installation Steps: see install. Win32 in the OpenSSL directory.
1. Perl configure VC-WIN32
If it fails, an obvious prompt will be displayed.
2. Ms \ do_ms
This method is recommended.
If you use the other two methods, you must ensure that the local machine has a compiler.
: Ms \ do_masm (default VC compiler; also download and install it by yourself)
: Ms \ do_nasm (you need to download it yourself)


3. Go to the Microsoft Visual Studio \ vc98 \ bin directory in the DOS window and run vcvars32.bat to configure environment variables.
4. Jump to the OpenSSL directory and execute:
Nmake-F Ms \ NTDLL. Mak

If the compilation is successful, the final output is under the out32dll directory, including the executable file, two DLL files, and two lib files: libeay32.dll, libeay32.lib, ssleay32.dll, and ssleay32.lib.

Preliminary programming:

1. Open VC-tools-options-Directores,Add the openssl-0.9.8 \ inc32 directory in include files; add openssl-0.9.8 \ out32dll to libray files
2. SourceProgramContains the following three header files and adds them to Lib:
# Include <OpenSSL/SSL. h>
# Include <OpenSSL/err. h>
# Include <OpenSSL/Bio. h>
# Pragma comment (Lib, "libeay32.lib ")
# Pragma comment (Lib, "ssleay32.lib ")

3, reference source code programming: http://www.kennethballard.com/Download/intro-openssl.zip

Refer:

Use OpenSSL APIs for security programming

Http://www-128.ibm.com/developerworks/cn/linux/l-openssl.html

OpenSSL official site: http://www.openssl.org/

ArticleSource: http://www.diybl.com/course/4_webprogram/asp.net/netjs/2008223/100573.html

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.