OpenSSL Upgradation Procedure:
Every linux operating system comes with a OpenSSL version. But if you want to upgrade it to the lates version then follow the following steps:–
[ steps described above is tested on CentOS 5 (Stable) ]
Steps for upgradation of OpenSSL:——
- Remove the previous versions of OpenSSL using the following command:
#rpm -erase –nodeps openssl
- Fetch the latest version of openssl from http://openssl.org/source. [Latest version is openssl-0.9.8k]
- Unzip the tar file to /usr using the following command:
#tar -zxvf -C /usr openssl-0.9.8k.tar.gz
- Move to the /usr/openssl-0.9.8k directory
#cd /usr/openssl-0.9.8k
- Install the OpenSSL using the following commands:
<#./config shared
#make
#make test
#make install
- Link the new files using the following commands:
#cd /lib
#ln -s /usr/openssl-0.9.8k/libssl.so.0.9.8 libssl.so.0.9.8b†
#ln -s /usr/openssl-0.9.8k/libssl.so libssl.so.6†
#ln -s /usr/openssl-0.9.8k/libcrypto.so.0.9.8 libcrypto.so.0.9.8b†
#ln -s /usr/openssl-0.9.8k/libcrypto.so libcrypto.so.6†
#cd /usr/lib
#rm /libssl.so
#rm /libcrypto.so
#ln -s /usr/openssl-0.9.8k/libssl.so libssl.so
#ln -s /usr/openssl-0.9.8k/libcrypto.so libcrypto.so
#ln -s /usr/local/ssl/include/ /usr/include/ssl
#cd /usr/include
#rm -rf openssl
#ln -s /usr/local/ssl/include/openssl openssl
- Rerun ldconfig
- Perform the following steps:
#cd /etc
#rm ld.so.cache
Open the ld.so.conf file in vi editor and add the following lines:
- add /usr/local/ssl/lib
- add /usr/local/lib
Run ldconfig.
- Change the Environment Path Variable
Open .bash_profile file in vi editor
#vi /root/.bash_profile
Add the following line before export PATH
PATH=$PATH:/usr/openssl-0.9.8k/apps
Save the file end exit from vi editor.
- Reboot.
- Done
† the symbolic file name may be different depending on the operating system and different version of OpenSSL.



leave a comment