How to configure Letsencrypt to load balance Google Cloud Compute Engine?

I configured my Google Cloud Project to use a load balancer in conjunction with auto-scaled instance templates. Currently, an instance group has only one instance.

My domain name successfully belongs to IP load balancers. Until these steps, everything works correctly.

Now I want to configure SSL for this project. I would like to do this using the Letsencrypt service, however I have no success trying to install this.

The Google Cloud Engine load balancing window has the option of installing a previously created certificate with Google Cloud on the load balancing interface. Unfortunately, I can create a .csr and .key file with a Google cloud shell. In addition, I can create an insecure ssl certificate and get a .cert file from it, but I would like to create a secure SSL certificate file using letencrypt. Letsencrypt services require direct access to the domain from the command line interface on which the command was executed, this is probably the reason Im gets an error message indicating that the domain name could not be recovered.

I need a way to install a Letsencrypt certificate on a loadbalancer using Google Cloud. Is there a way in which I can manually create a .cert file with letencrypt instead of installing this directly? If there is no other way or service to create a .cert file from a .csr and .key file?

+6
source share
3 answers

You can use sslforfree.com , which calls LetsEncrypt for you and gives you the keys to download. It may also remind you to renew certificates. (There is currently no way to automatically renew certificates in Google LB)

+1
source

certbot

,

$ ./certbot-auto certonly --standalone --email admin@example.com -d example.com -d www.example.com
0

Kubernetes Google Compute Engine, cert-manager, kube-lego. Kubernetes Ingress Let Encrypt:

  • :
    • (. LEGO_MINIMUM_VALIDITY)
    • ,
  • ( ) Let Encrypt Kubernetes ( LEGO_SECRET_NAME)
  • Let Encrypt HTTP-01-
  • , Kubernetes (Services, Ingress) HTTP-01
  • Kubernetes Helm .

GCE .

0

All Articles