Clean up the ssl/tls support to be able to use the built-in support, too.