Add an option to create an encrypted connection.