Posts Tagged ‘tools’

OpenSSL Upgradation Procedure:

April 23, 2009 Leave a comment

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 [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 test

#make install

  • Link the new files using the following commands:

#cd /lib

#ln -s /usr/openssl-0.9.8k/

#ln -s /usr/openssl-0.9.8k/

#ln -s /usr/openssl-0.9.8k/

#ln -s /usr/openssl-0.9.8k/

#cd /usr/lib

#rm /

#rm /

#ln -s /usr/openssl-0.9.8k/

#ln -s /usr/openssl-0.9.8k/

#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


Open the 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


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.