build: add https support, fixes #18