This patch changes the logic for generating a self signed certificate to also run when letsencrypt is being used. This temporary self signed cert is generated before haproxy is restarted with its full configuration, and before certbot has been run to generate the initial LE cert. This is necessary because haproxy will not start correctly if it is configured to use an ssl certificate but none is present. This would be the case with the previous code before certbot has run for the first time. This patch also removes the task which stops haproxy before running certbot. It is no longer necessary to do this as haproxy is able to start correctly using the initial self-signed cert. Change-Id: I6591243737b3a1bb369393439e1c44929f2f945b
1.1 KiB
1.1 KiB