Fixed use_ssl implementation