How do I fix SSL login for cPanel whm on port 2087?

SolutionMaybe you are missing the symlink. Try the following via SSH while logged in as root:

cd /usr/lib
ln -s libssl.so.0 libssl.so.4
ln -s libcrypto.so.0 libcrypto.so.4
ln -s libcrypto.so.0.9.7a* /lib/libcrypto.so.4
ln -s libssl.so.0.9.7a* /lib/libssl.so.4
cd /lib
ln -s libssl.so.0.9.7a libssl.so.0.9.7
ln -s libcrypto.so.0.9.7a libcrypto.so.0.9.7
/usr/local/cpanel/startstunnel

If Net_SSLeay needs to be reinstalled:

cd /usr/local/cpanel/src/3rdparty/perl/Net_SSLeay.pm-1.25
perl Makefile.PL
make
make install
/etc/init.d/cpanel restart