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.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:

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

More info:,1,88




Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: