Hi,
I had to uninstall openssl and reinstall it on 2 of my servers. Problem was that one of my servers was crashed before openssl was reinstalled and openssl was no longer present which basically meant I had a trip to the datacenter. The other server went completely OK by doing the following, however keep in mind that uninstalling/reinstalling openssl might give you a trip to the datacenter. Here's my solution for a debian server:
1. Download the latest openssl version incase you break your server (apt-get will not work anylonger if openssl is broken) and you need to reinstall openssl manually
2. I changed the dpkg status of the packages to "purge ok not-installed" by editing the dpkg status file ("vi /var/lib/dpkg/status")
3. I removed all openssl.so.* and libcrypto.so.* library files in /usr/lib or /usr/local/lib (I don't remember if I kept libssl.a and libcrypto.a libraries or if I also deleted them)
4. I used aptitude to reinstall openssl (this is when the server was not broken and offline yet), when the server didn't come back online I had to go to the datacenter and reinstalled openssl from the downloaded version in step 1.
To see what openssl packages have been installed on your debian system you can use: dpkg --get-selections | grep ssl
This resulted in the following packaged on my system:
- libssl-dev
- libssl0.9.8
- libssl0.9.7
- openssl
But like scsi said it's dangerous to uninstall openssl, but in my case I had to reinstall it because PHP didn't function anylonger on both of my servers because of openssl problems. So for 1 server I could do the whole process from my home and for the other server I had to fix the problems at the datacenter because it rebooted/crashed before openssl was reinstalled.
Dreamline