Remediation
Replace the Target HTTP Proxy with a Target HTTPS Proxyβ
This process involves creating an SSL certificate, configuring a new HTTPS proxy, and updating the forwarding rule to use the secure proxy.
From gcloud CLIβ
-
Create an SSL Certificate (if one does not already exist)
gcloud compute ssl-certificates create {{certificate-name}} \
--private-key {{path-to-private-key}} \
--certificate {{path-to-certificate}} \ -
Create a new Target HTTPS Proxy
gcloud compute target-https-proxies create {{new-https-proxies-name}} \
--ssl-certificates {{ssl-certificate}} \
--url-map {{url-map-name}} \ -
Update the Forwarding Rule to use the new Target HTTPS Proxy
gcloud compute forwarding-rules set-target {{rule-name}} \
--target-https-proxy {{new-https-proxy-name}} -
Delete the old Target HTTP Proxy
gcloud compute target-http-proxies delete {{old-http-proxy-name}}