How to install/upgrade openssl and compile ssl with apache.
Note: Apache httpd 2.4.x is compatible with openssl-1.0.x and not with higher.
Download OpenSSL:
https://www.openssl.org/source/openssl-1.0.2k.tar.gz
1) Install and Compile openssl source
Extract it any where you want, Follow below command to compile openssl.
--prefix=(this is to specify installation directory if not use it will install at default location)
Command: ./config --prefix=/usr --openssldir=/usr/local/openssl shared
make
make install
openssl installed sucessfully.
2) Compile openssl with apache or Install Apache with mod_ssl.
Command: ./configure --prefix=/opt/httpd --enable-ssl --enable-so
make
make install
openssl compiled with apache sucessfully.
Download OpenSSL:
https://www.openssl.org/source/openssl-1.0.2k.tar.gz
1) Install and Compile openssl source
Extract it any where you want, Follow below command to compile openssl.
--prefix=(this is to specify installation directory if not use it will install at default location)
Command: ./config --prefix=/usr --openssldir=/usr/local/openssl shared
make
make install
openssl installed sucessfully.
2) Compile openssl with apache or Install Apache with mod_ssl.
Command: ./configure --prefix=/opt/httpd --enable-ssl --enable-so
make
make install
openssl compiled with apache sucessfully.
Hi,
ReplyDeleteDo we have to give path of openssl while compiling openssl with apache?
Also, what is shared that you have mentioned while compiling openssl
Suyog:- There are two scenario of installation 1) Just install openssl 2) Compile openssl with apache for mod_ssl.so module in apache.
DeleteNote: All commands need to be executed inside openssl source
shared: This parameter forces the creation of shared libraries along with the static libraries.
thanks
Delete