HAProxy and Intermediate SSL Certificate Issue
Correct order to include intermediate certificates:
-----BEGIN PRIVATE KEY-----
[Your private key]
-----END PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
[Your certificate]
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
[Intermidate#1 certificate]
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
[Intermidate#2 certificate]
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
[Root certificate]
-----END CERTIFICATE-----
awk 1 ORS='\\n' ~/your_path/cert.pem
and paste to docker-compose.yml
like that:
proxy:
image: tutum/haproxy
ports:
- "80:80"
- "443:443"
environment:
- "DEFAULT_SSL_CERT=-----BEGIN PRIVATE KEY-----\nMIIEvQIBADA......"
links:
- webapp
It's work for me.