ssl connection supported, based on PR by @blablacio