haproxy - unable to load SSL private key from PEM file

后端 未结 9 1598
悲哀的现实
悲哀的现实 2021-02-05 00:41

haproxy does not start anymore, it shows the error

bind :443\' : unable to load SSL private key from PEM file ...

We did not change a

9条回答
  •  春和景丽
    2021-02-05 00:58

    For the latest version of letsencrypt certbot,fullchain.pem and privkey.pem files will be generated for you in /etc/letsencrypt/live/example.com folder. They need to be combined in order to HAProxy to read it properly.

    cat fullchain.pem privkey.pem > example.com.pem
    

    In HAProxy configuraion /etc/haproxy/haproxy.cfg

    bind *:443 ssl crt /etc/letsencrypt/live/example.com/example.com.pem
    

提交回复
热议问题