add ssl (HTTPS) support

Signed-off-by: Stéphane Depierrepont <toorop@toorop.fr>