{"id":1047,"date":"2011-03-30T17:22:11","date_gmt":"2011-03-30T09:22:11","guid":{"rendered":"http:\/\/www.se.cuhk.edu.hk\/~hmleung\/wordpress\/?p=1047"},"modified":"2011-03-30T17:58:42","modified_gmt":"2011-03-30T09:58:42","slug":"ssl-certificates-ssl_error_rx_record_too_long","status":"publish","type":"post","link":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/?p=1047","title":{"rendered":"ssl_error_rx_record_too_long"},"content":{"rendered":"<p>&#8220;Error code: ssl_error_rx_record_too_long&#8221; for Apache SSL in CentOS 5.5<\/p>\n<p>I have recently configured apache httpd with mod_ssl in my freshly installed CentOS5.5 . There is no problem with <i>http:\/\/webserver.se.cuhk.edu.hk<\/i> but I when tried to access <i>https:\/\/webserver.se.cuhk.edu.hk<\/i> and  then I keep getting this Error code: <\/p>\n<blockquote>\n<p>\n    Secure Connection Failed<br \/>\n     &#8230;..<br \/>\n  SSL received a record that exceeded the maximum permissible length.<br \/>\n  (Error code: ssl_error_rx_record_too_long)\n<\/p>\n<\/blockquote>\n<p>However, if I access with http:\/\/webserver.se.cuhk.edu.hk:443 , that can return the website content correctly . <\/p>\n<p>Eventually , it&#8217;s found that  there is nothing wrong with \/etc\/httpd\/conf.d\/ssl.conf , but problem actually occurs in  \/etc\/httpd\/conf\/httpd.conf  :<\/p>\n<blockquote>\n<p>   < NameVirtualHost {webserver IP} ><br \/>\n   < VirtualHost {webserver IP} ><br \/>\n     &#8230;&#8230;&#8230;&#8230;\n<\/p>\n<\/blockquote>\n<p>I should deliberately specify 80 as the port for the virtual hosts as follows : <\/p>\n<blockquote>\n<p>\n   < NameVirtualHost {webserver IP}:80 ><br \/>\n   < VirtualHost {webserver IP}:80 ><br \/>\n     &#8230;&#8230;..\n<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;Error code: ssl_error_rx_record_too_long&#8221; for Apache SSL in CentOS 5.5 I have recently configured apache httpd with mod_ssl in my freshly installed CentOS5.5 . There is no problem with http:\/\/webserver.se.cuhk.edu.hk but I when tried to&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1047","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1047"}],"version-history":[{"count":0,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1047\/revisions"}],"wp:attachment":[{"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www1.se.cuhk.edu.hk\/~hmleung\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}