{"action":"created","issue":{"url":"https://api.github.com/repos/tutumcloud/haproxy/issues/130","repository_url":"https://api.github.com/repos/tutumcloud/haproxy","labels_url":"https://api.github.com/repos/tutumcloud/haproxy/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/tutumcloud/haproxy/issues/130/comments","events_url":"https://api.github.com/repos/tutumcloud/haproxy/issues/130/events","html_url":"https://github.com/tutumcloud/haproxy/issues/130","id":123945722,"number":130,"title":"Unable to load SSL private key from PEM file","user":{"login":"satblip","id":1811109,"avatar_url":"https://avatars.githubusercontent.com/u/1811109?v=3","gravatar_id":"","url":"https://api.github.com/users/satblip","html_url":"https://github.com/satblip","followers_url":"https://api.github.com/users/satblip/followers","following_url":"https://api.github.com/users/satblip/following{/other_user}","gists_url":"https://api.github.com/users/satblip/gists{/gist_id}","starred_url":"https://api.github.com/users/satblip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satblip/subscriptions","organizations_url":"https://api.github.com/users/satblip/orgs","repos_url":"https://api.github.com/users/satblip/repos","events_url":"https://api.github.com/users/satblip/events{/privacy}","received_events_url":"https://api.github.com/users/satblip/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-26T19:58:04Z","updated_at":"2016-04-18T16:08:45Z","closed_at":null,"body":"Hi Guys, I’m fighting with HAproxy and my SSL certificate. I’ve been able to add a self signed easily, but with my Comodo certificate, impossible to make it works. I have the `SSL_CERT` set like this :\r\n\r\n```\r\n-----BEGIN RSA PRIVATE KEY-----\r\n-----END RSA PRIVATE KEY-----\r\n-----BEGIN MY CERTIFICATE-----\r\n-----END MY CERTIFICATE——\r\n-----BEGIN ROOT CA CERTIFICATE-----\r\n-----END ROOT CA CERTIFICATE-----\r\n-----BEGIN INTERMEDIATE CERTIFICATE-----\r\n-----END INTERMEDIATE CERTIFICATE-----\r\n-----BEGIN INTERMEDIATE CERTIFICATE-----\r\n-----END INTERMEDIATE CERTIFICATE——\r\n```\r\n\r\nAnd I keep getting \r\n\r\n```bash\r\n'bind :443' : unable to load SSL private key from PEM file '/certs/cert1.pem'.\r\n``` \r\n\r\nMy RSA key and my certificate modulus are matching, so I would suspect the order of the intermediate and CA root certificates.\r\n\r\nI'm a bit stuck there, if you have any idea, it would be cool :smile: \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tutumcloud/haproxy/issues/comments/211448635","html_url":"https://github.com/tutumcloud/haproxy/issues/130#issuecomment-211448635","issue_url":"https://api.github.com/repos/tutumcloud/haproxy/issues/130","id":211448635,"user":{"login":"ktruckenmiller","id":1864889,"avatar_url":"https://avatars.githubusercontent.com/u/1864889?v=3","gravatar_id":"","url":"https://api.github.com/users/ktruckenmiller","html_url":"https://github.com/ktruckenmiller","followers_url":"https://api.github.com/users/ktruckenmiller/followers","following_url":"https://api.github.com/users/ktruckenmiller/following{/other_user}","gists_url":"https://api.github.com/users/ktruckenmiller/gists{/gist_id}","starred_url":"https://api.github.com/users/ktruckenmiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktruckenmiller/subscriptions","organizations_url":"https://api.github.com/users/ktruckenmiller/orgs","repos_url":"https://api.github.com/users/ktruckenmiller/repos","events_url":"https://api.github.com/users/ktruckenmiller/events{/privacy}","received_events_url":"https://api.github.com/users/ktruckenmiller/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T16:08:45Z","updated_at":"2016-04-18T16:08:45Z","body":"Yeah @darkin1 that worked. The problem for me is that it was:\r\n\r\n`\"DEFAULT_SSL_CERT=-----BEGIN PRIVATE KEY-----\\nMIIEvQIBADA......\"`\r\n\r\nand not\r\n`\"DEFAULT_SSL_CERT='-----BEGIN PRIVATE KEY-----\\nMIIEvQIBADA......'\"`\r\n\r\nor a variation thereof"}}