"Connection refused" is usually not an SSL problem. I suspect, that either the service is not running on the host/port specified (likely), or there is a firewall in between (unlikely, as firewalls typically cause a "Connection timed out").
If a FHEM module is missing a perl library, then you can find a message specifying the library in the FHEM Log.
To install a missing library I recommend using the OS supplied version: entering "debian Net::Server::Proto" in a search engine tells me that the debian package name is libnet-server-perl.
If there is no corresponding package from the OS, then it can be installed via "cpan -i <package-name>"