{"id":3448,"date":"2018-06-01T05:40:31","date_gmt":"2018-06-01T12:40:31","guid":{"rendered":"http:\/\/www.sheer.us\/weblogs\/?p=3448"},"modified":"2018-06-01T05:40:31","modified_gmt":"2018-06-01T12:40:31","slug":"haproxy-unable-load-ssl-certificate-weird-one","status":"publish","type":"post","link":"https:\/\/www.sheer.us\/weblogs\/linux\/haproxy-unable-load-ssl-certificate-weird-one","title":{"rendered":"haproxy and unable to load SSL certificate (weird one)"},"content":{"rendered":"<p>So, I was setting up a haproxy this morning and I was having a heck of a time getting it to load the SSL Certificate. I kept getting &#8220;Unable to load SSL certificate&#8221;, which was not a phrase google was helping me with.<\/p>\n<p>It turned out that the BEGIN CERTIFICATE line, as issued from namecheap, only had four &#8216;-&#8216; characters where haproxy wanted to see five. I also couldn&#8217;t do a openssl x509 -text -in, I would get the error &#8220;140146308224672:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: TRUSTED CERTIFICATE&#8221;. <\/p>\n<p>So, that&#8217;s a hour of my life I&#8217;ll not get back, but hopefully someone else will now find this problem on google.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, I was setting up a haproxy this morning and I was having a heck of a time getting it to load the SSL Certificate. I kept getting &#8220;Unable to load SSL certificate&#8221;, which was not a phrase google was helping me with. It turned out that the BEGIN CERTIFICATE line, as issued from namecheap, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/posts\/3448"}],"collection":[{"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/comments?post=3448"}],"version-history":[{"count":1,"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/posts\/3448\/revisions"}],"predecessor-version":[{"id":3449,"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/posts\/3448\/revisions\/3449"}],"wp:attachment":[{"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/media?parent=3448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/categories?post=3448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheer.us\/weblogs\/wp-json\/wp\/v2\/tags?post=3448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}