Wip/add ssl

Should help with #252