Fix autocert insecure server redirect
This fixes certificate validation, while keeping HTTP -> HTTPS redirection.
Ref T542