4/27/2019

Haproxy error inconsistencies between private key and certificate loaded from PEM file





Error in haproxy with lets encrypt

error msg
bind *:443' : inconsistencies between private key and certificate loaded from PEM file '/etc/letsencrypt/live/

Need to create a new file

cat cert.pem privkey.pem > haproxy_cert.pem



Add in haproxy
frontend www
        bind *:80
        bind *:443  ssl crt /etc/letsencrypt/live/mydomain.com/haproxy_cert.pem

and make a test
haproxy -c -V -f /etc/haproxy/haproxy.cfg