making it work in debian and adding info about how to debug ssl issues