[WiP] add ssl support