merge in ssl support thanks @sni (closes #2)