Discover ssl/tls support automatically