Move HTTPS availability checking to its own function so it can be used elsewhere

This is necessary for HTTPS site creation over Web services.

Merge request reports

Loading