Add https support
Merge pull request #3148 from glennw/ssl

Add https support