Make .pem file for using ssl in Haproxy

22 11 2013

Only for the certificate file:
# cat domain.key certificate.crt > domain.pem

Adding the intermediate certs too:
# cat domain.crt > domain-ca.pem
# cat domain.ca-crt >> domain-ca.pem
# cat domain.key >> domain-ca.pem

Take care about the order of the comment lines inside the pem file, always be like this, not both in one line:
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----

And in Haproxy conf:
# bind 192.168.1.1:443 name https ssl crt /etc/cert/domain-ca.pem

More info:
http://stackoverflow.com/questions/15048346/haproxy-ssl-configuration-install-root-and-intermediate-certificate

https://support.comodo.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=1209

https://support.comodo.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=264&nav=0,1,88

Advertisements

Actions

Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: