Add suport for ssl

Signed-off-by: Suki <suki@missallsunday.com>