Adjust the live secure tests to be more accurate.
Factor out the different SSL config options for HTTPS connections.