Native SSL on `hostname` Failed

If you are getting an email from cPanel that reads like the one below, then we have the fix for you!

Native SSL support failed to pass the startup test. stunnel was started instead. The exact error was: [linktest=/usr/local/cpanel/bin/linktest-ssl: error while loading shared libraries: /usr/local/cpanel/perl/Net/SSLeay/SSLeay.so: cannot open shared object file: No such file or directory ] [binary=/usr/local/cpanel/cpsrvd-ssl] [cpsrvd=/usr/local/cpanel/cpsrvd-ssl: error while loading shared libraries: /usr/local/cpanel/perl/Net/SSLeay/SSLeay.so: cannot open shared object file: No such file or directory ] You should attempt run /usr/local/cpanel/bin/nativessl-install or submit a support request at https://tickets.cpanel.net/submit/

When running the script mentioned in the email above, you may get the following error. If you do, then continue reading as this article is for you!

# /usr/local/cpanel/bin/nativessl-install
...
/usr/local/cpanel/bin/linktest-ssl: error while loading shared libraries: /usr/local/cpanel/perl/Net/SSLeay/SSLeay.so: cannot open shared object file: No such file or directory

There is another Perl module that is critical to the successful building of the Net::SSLeay object that cPanel can't seem to figure out to install itself. So we manually install it:

# /scripts/perlinstaller ExtUtils::Install

After that, you should be able to re-run the script above and fix the underlying issue!