added SSL support

le sigh