The complete process of using OpenSSL in Linux Eclipse-with screenshots and test programs

Source: Internet
Author: User
Tags install openssl openssl tls

I. Installation

First download the original opensslfile, such as openssl-1.0.1f.tar.gz

Copy the file to the workspace Directory, which is generally a personal folder under/home.

Decompress the file tar zxvf openssl-1.0.1f.tar.gz

Enter the cd openssl-1.0.1f in the file

Configuration: copy the generated openssL file to the default system folder. In this step, you only need to copy the following code: "./config -- prefix =/usr/local/openssl shared"

Run the make command: make

Use root permission to install openssL: sudo make install

So far, openssL installation is complete. Two of the completed directories are important. One is the include package, which can be viewed during external calls. h header file. The other is the lib package, which contains static and shared file packages for ssl and crypto. The second step is to configure these two files.

2. How to configure in eclipse

The include and lib variables must be configured in eclipse.

Create a C language test project, such as openssL_test, right-click the attribute-C/C ++ Build-settings, and click the first red box on the right of the graph, that is, include under gcc c Compiler, make the following settings. The path here is the include position above.

Click libraries under gcc c Linker and make the following settings:

Ssl and crypto are manually added, but they are not arbitrarily written. In fact, these two variables correspond to libssl under the/usr/local/openssl/lib directory. so and libcrypto. so file.

In addition, if the project is of the C ++ type, there will be a G ++ compiler setting option, which can be set in the same way as that of GCC.

OpenSSL details: click here
OpenSSL: click here

OpenSSL TLS heartbeat read remote information leakage (CVE-2014-0160)

Severe OpenSSL bug allows attackers to read 64 KB of memory, fixed in half an hour in Debian

OpenSSL "heartbleed" Security Vulnerability

Provides FTP + SSL/TLS authentication through OpenSSL and implements secure data transmission.

  • 1
  • 2
  • Next Page

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.