DThese instructions generate a certificate using Let's Encrypt.
The DNS name (this is entered in the certificate) must be resolved via DNS and must be routed to the IP address of the load balancer.
This procedure cannot be used before that
Note: the automatic renewal of the certificate is not (yet) described by these instructions.
First certbot is installed.
|
Then everything running on port 80 must be stopped. On the load balancer this is usually the haproxy itself.
|
Then certbot is executed - it runs on port 80, and then receives a request from Let's Encrypt.
Here it is important to adjust the first line - this must correspond EXACTLY to the DNS names.
|
Next, the .pem file (containing the full certificate chain and private key) is generated.
|
And at the end you can optionally clean up.
|
Then continue as described under Role LB - Certificates for load balancers the certificate is now available in the file /etc/haproxy/haproxy.pem .