Enable SSL based on the https port and security realm configuration.