Openssllibcrypto. a and libssl. a solve the problem of undefined reference to error when referencing openssl static libraries libcrypto..
Recently, the project that uses openssl to link http and https has encountered the following problems during compilation.
/Usr/local/openssl/lib/
Libcrypto. so.10 content loss causes sshd to fail to run,
Start the VM today. The ssh service cannot start. The prompt is as follows:
Starting sshd:/usr/sbin/sshd: error while loading shared libraries: libcrypto. so.10: cannot open shared object file: No such file or directory
This problem was caused by the forced uninstall of openssl by rpm-e
Lighttpd cannot be started. libssl. so.4 libcrypto. so.4 is missing. lighttpd cannot be wget
The error log of lighttd is in log/out_lighttpd. When lighttd cannot be started, the cause is described in the file.
Today's error is:Error while loading shared libraries: libssl. so.4
This is because the dynamic library fails to be loaded. There is no dynamic library named libssl. so.4 in your environment.
The solution is to find a solution.
Method 1:
Transferred from: http://blog.csdn.net/cjj198561/article/details/28955461Compiling librtmp requires you to compile OpenSSL first, because Librtmp relies on OpenSSLFirst compile OpenSSL:Save the following as a shell script:#!/bin/shversion= "1.0.1h" #指明openssl的版本信息, such as the download is openssl-1.0.1h.tar.gz then for the fill 1.0.1hsdkversion= "7.1" #指明ios SDK
Original
introduction of OpenSSL
OpenSSL is currently the most popular SSL password library tool, it provides a universal, robust, full-featured tool suite to support the implementation of the SSL/TLS protocol.Official website: https://www.openssl.org/source/ composing partial cipher algorithm library key and certificate encapsulation management function SSL Communication API Interface use establish RSA,
OpenSSL
Usage Detailed
OpenSSL
:
Component: Libcrypto,libssl
Openssl
Openssl
Many sub commands can be divided into three categories:
Standard command
Message Digest command (DGST subcommand
Upgrade the OpenSSL version to version 1.0.2l for exampleHere's how:1. Download the latest version of the OpenSSL source packagewget ftp://ftp.openssl.org/source/openssl-1.0.2l.tar.gzhttps://www.openssl.org/source/2. Installing OpenSSL1) TAR–XZVF openssl-1.0.2l.tar.gz2) CD openssl
http://blog.csdn.net/cjj198561/article/details/28955461Compiling librtmp requires you to compile OpenSSL first, because Librtmp relies on OpenSSLFirst compile OpenSSL:Save the following as a shell script:#!/bin/shversion= "1.0.1h" #指明openssl的版本信息, such as the download is openssl-1.0.1h.tar.gz then for the fill 1.0.1hsdkversion= "7.1" #指明ios SDK version number, th
Openssl is an open-source implementation of SSL (applications can be downloaded for free). It is a secure and confidential program that is mainly used to improve the security of remote login access. It is also one of the tools currently used in encryption algorithms and has powerful functions.Openssl provides a security protocol for network communication security and data integrity, including key algorithms, common key and certificate encapsulation ma
Copy the Code code as follows:
Yum-y Install OpenSSL
/usr/local/bin/is the installation directory for PHP
Switch to the Etx/openssl directory of the PHP installation directory
Cd/root/soft/php-5.2.8/ext/openssl
Copy the Code code as follows:
/usr/local/bin/phpize
Cannot find CONFIG.M4.
Make sure this you run '/usr/local/bin/phpize ' in the top level source
BackgroundCompany to do security scan, sweep out OpenSSH, OpenSSL loopholes, need to do upgrade. Direct Yum Update has no effect, so we have to manually compile the upgrade.Pre-upgradessh -VOpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013After upgradessh -VOpenSSH_7.6p1, OpenSSL 1.0.2n 7 Dec 2017Preparatory work
Preparing the OpenSSH,
Export the MinGW compiled OpenSSL DLL to Def and Lib for msvc useBefore we used MinGW to compile OpenSSL into a dynamic library, we got the following 2 DLL files:Libeay32.dllSsleay32.dllThen use the following script to generate the module definition files (. def,. Lib and. Exp) required by Windows MSVC,Then you can use it in the VC. Prerequisite system to install vs.System Requirements:Windows7+vs Studio (l
openssl source program is compiled and installed, we not only get two useful library files libcrypto. a and libssl. a. It also contains an example of a very complete function provided by the two libraries, that is, the openssl executable file and other auxiliary files, the functions completed in this example include key pair generation, certificate application,
overwrites the original zlibTAR-ZXVF zlib-1.2.3.tar.gz./configureMakeMake install3. Installing OpenSSLSee the OpenSSL, OpenSSH version of the original system first650) this.width=650; "title=" 3.png "style=" float:left; "src=" http://s3.51cto.com/wyfs02/M02/74/BE/ Wkiol1yoairgvp-8aabeye9hpx0421.jpg "alt=" Wkiol1yoairgvp-8aabeye9hpx0421.jpg "/>The version you see is version 5.3 and 1.0.1e.Let's do the installation.Note: The original
OpenSSL exposed the most serious security vulnerability of the year. This vulnerability was named "heartbleed" in the hacker community.
The "heartbleed" vulnerability will affect at least 0.2 billion Chinese netizens. It is initially evaluated that a batch of mainstream websites with https logon methods are recruited by no less than 30% of websites, these include the most common shopping, online banking, social networking, portals, microblogs, mailbo
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.