Community Forum - Create Topic  Community Forum - Create Topic

Author Topic: SSL issues at HAProxy

LIANG WONG

Joined: 5/18/2017

Post SSL issues at HAProxy
Friday, May 19, 2017 2:58:18 PM

Hi, I have tried concatening the private key, the intermediate cert, and the 2017 cert into a pen from the ones I received from you but still not working at my HAProxy. Please help.

'bind 0.0.0.0:443' : inconsistencies between private key and certificate loaded from PEM file.

Coby De Cock

Joined: 3/23/2017

Post Re: SSL issues at HAProxy
Sunday, May 21, 2017 1:11:12 PM

LIANG WONG wrote:Hi, I have tried concatening the private key, the intermediate cert, and the 2017 cert into a pen from the ones I received from you but still not working at my HAProxy. Please help.

'bind 0.0.0.0:443' : inconsistencies between private key and certificate loaded from PEM file.


Below is the format of the PEM file. I think you may have got the order of the certificate, intermediate certificate and root certificate wrong. I recommend you first put just the private key and certificate into the PEM file and see how that goes. Then add in the intermediate at the end and verify.

-----BEGIN RSA PRIVATE KEY-----
(Your Private Key: domainname.key)
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
(Your Primary SSL certificate: domainname.crt)
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
(Your Intermediate certificate: intermediate1.crt)
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
(Your Root certificate: root.crt)
-----END CERTIFICATE-----

LIANG WONG

Joined: 5/18/2017

Post Re: SSL issues at HAProxy
Sunday, May 21, 2017 7:56:53 PM

Concatenating the certs in below order works for me.

1) Root Cert
2) Intermediate Cert
3) Private Key

Thanks.


It is currently Monday, August 21, 2017 7:02 AM Mountain Standard Time