How to set the SSL/TLS encryption mode