{"id":6506,"date":"2014-04-19T04:42:00","date_gmt":"2014-04-19T04:42:00","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/19\/haproxy-not-passing-ssl-traffic-in-tcp-mode-unknown-protocol-collection-of-common-programming-errors\/"},"modified":"2014-04-19T04:42:00","modified_gmt":"2014-04-19T04:42:00","slug":"haproxy-not-passing-ssl-traffic-in-tcp-mode-unknown-protocol-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/19\/haproxy-not-passing-ssl-traffic-in-tcp-mode-unknown-protocol-collection-of-common-programming-errors\/","title":{"rendered":"HAProxy not passing SSL traffic in TCP mode (unknown protocol)-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;ve got a HAProxy LB solution setup and working correctly. All HTTP traffic on port 80 is being passed through succesfully.<\/p>\n<p>I&#8217;m now trying to get SSL traffic to work (in TCP mode and on just one server for now) however I keep getting the following error when testing via openssl:<\/p>\n<pre><code>26396:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:588:\n<\/code><\/pre>\n<p>However, when I try the same test (openssl s_client -connect) on the web servers IP address and hostname, everything seems to look OK. I can setup a hosts record locally and confirm that the browsers are picking up the SSL certificate succesfully for the domain.<\/p>\n<p>I guess this has led me to the conclusion that there is a problem at the HAProxy setup I have, so would really appreciate some advice here.<\/p>\n<pre><code>frontend https-c-in\n    bind 178.79.xxx.xxx:443\n    mode tcp\n    default_backend c-https\n\nbackend c-https\n    balance source\n    option ssl-hello-chk\n    option httpclose\n    server  c-web-01 192.168.xxx.xxx:443 check inter 2000 rise 2 fall 5\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve got a HAProxy LB solution setup and working correctly. All HTTP traffic on port 80 is being passed through succesfully. I&#8217;m now trying to get SSL traffic to work (in TCP mode and on just one server for now) however I keep getting the following error when testing via openssl: 26396:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:588: However, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6506","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6506"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6506\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}