#29 refactored SSL support to be aligned with other transports