{"id":2459,"date":"2014-01-20T12:13:35","date_gmt":"2014-01-20T04:13:35","guid":{"rendered":"http:\/\/blog.pighead.cc\/whsyu\/?p=2459"},"modified":"2014-01-20T12:57:55","modified_gmt":"2014-01-20T04:57:55","slug":"different-openssl-version-causes-https-problem","status":"publish","type":"post","link":"https:\/\/blog.pighead.cc\/whsyu\/2014\/01\/20\/different-openssl-version-causes-https-problem\/","title":{"rendered":"OpenSSL \u7248\u672c\u5dee\u7570\u9020\u6210 HTTPS \u51fa\u554f\u984c"},"content":{"rendered":"<p class=\"bb-post-separator\"><strong>[\u83ef\u8a9e, cmn-Hant-TW]  <\/strong><\/p><p>\u65b0\u704c\u597d\u7684 FreeBSD 10 \u6a5f\u5668\u4e0a\u8a2d\u5b9a\u597d apache\uff0c\u8981\u7528 https \u63d0\u4f9b svn \u670d\u52d9\uff0c\u7d50\u679c\u5728\u67d0\u4e9b\u6a5f\u5668\u4e0a\u5403\u5230\u9019\u6a23\u7684\u554f\u984c<br \/>\n<code>svn: E120171: Error running context: An error occurred during SSL communication<\/code><\/p>\n<p>\u539f\u56e0\u4e0d\u660e\uff0c\u6709\u8da3\u7684\u662f\u6709\u554f\u984c\u7684\u90a3\u5e7e\u53f0\u6a5f\u5668\u7528 svn 1.7 + neon \u7684\u8a71\u4f3c\u4e4e\u662f\u53ef\u7528\u7684\uff0c\u4f46\u662f svn 1.8 + serf \u5c31\u70b8\u6389\u4e86\u3002<br \/>\n\u518d\u6e2c\u8a66\u4e00\u4e0b\u767c\u73fe\u4e5f\u4e0d\u662f\u6bcf\u500b\u8edf\u9ad4\u90fd\u6703\u6709\u554f\u984c\uff0ccurl \u6d3b\u5f97\u597d\u597d\u7684\uff0cw3m (\u6587\u5b57\u6a21\u5f0f\u7684\u7db2\u9801\u700f\u89bd\u5668) \u9023\u7dda\u5c31\u70b8\u6389\u4e86\uff0c\u5403\u5230\u7684\u932f\u8aa4\u8a0a\u606f\u9577\u9019\u6a23\uff1a<br \/>\n<code>SSL error: error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112)<\/code><\/p>\n<p>\u4e0a\u7db2\u627e\u627e\uff0c\u770b\u5230\u4e86<a href=\"https:\/\/github.com\/composer\/composer\/issues\/2042\">\u9019\u7bc7<\/a>\u3001<a href=\"http:\/\/stackoverflow.com\/questions\/8619706\/running-curl-with-openssl-0-9-8-against-openssl-1-0-0-server-causes-handshake-er\">\u9019\u7bc7<\/a>\u8ddf<a href=\"http:\/\/stackoverflow.com\/questions\/7766961\/git-trouble-via-https-routinesssl23-get-server-hello\">\u9019\u7bc7<\/a>\uff0c\u5927\u81f4\u4e0a\u6709\u500b\u5e95\u3002\u4e3b\u8981\u662f OpenSSL 0.9.8 \u7684 Client \u4e0d\u80fd\u6b63\u78ba\u8655\u7406 OpenSSL 1.0.0 \u4e1f\u51fa\u4f86\u7684 SNI \u8b66\u544a\u8a0a\u606f\uff0c\u6240\u4ee5\u5c31\u70b8\u4e86\u3002\u8981\u89e3\u6c7a\u7684\u8a71\u8981\u561b\u5c31\u662f\u628a Server \u964d\u7d1a\uff0c\u8981\u4e0d\u5c31\u628a Client \u5347\u7d1a\uff0c\u4e0d\u7ba1\u600e\u9ebc\u5f04\u90fd\u662f\u5927\u5de5\u7a0b\uff0c\u6240\u4ee5\u5c31\u770b\u6709\u6c92\u6709\u5c40\u90e8\u6027\u7684\u8655\u7406\u65b9\u6cd5\uff0c\u4e5f\u5c31\u662f\u81f3\u5c11\u8b93 OpenSSL 1.0.0 \u4e0d\u8981\u5674\u932f\u8aa4\u8a0a\u606f\u5c31\u597d\u3002<\/p>\n<p>\u5f8c\u4f86\u767c\u73fe\u5176\u5be6\u4e5f\u4e0d\u7b97\u592a\u9ebb\u7169\uff0c\u5c31\u628a apache \u7684\u8a2d\u5b9a\u6a94 ServerAlias \u7684\u5730\u4e0a\u52a0\u4e0a\u6240\u6709\u53ef\u80fd\u9023\u5230\u9019\u53f0\u4f3a\u670d\u5668\u7684\u65b9\u5f0f\u901a\u901a\u52a0\u4e0a\u53bb\uff0c\u5305\u62ec domainname \u8ddf ip\uff0c\u5982\u679c\u6709\u900f\u904e\u9632\u706b\u7246\u63d0\u4f9b\u670d\u52d9\u90a3\u9632\u706b\u7246\u7684 domainname \u6216 ip \u4e5f\u8981\u52a0\u4e0a\uff0c\u9019\u6a23\u7528\u6236\u7aef\u53ea\u8981\u7528\u9019\u500b\u6e05\u55ae\u4e0a\u7684\u540d\u5b57\u9023\u5c31\u4e0d\u6703\u518d\u5403\u932f\u8aa4\u8a0a\u606f\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[\u83ef\u8a9e, cmn-Hant-TW] \u65b0\u704c\u597d\u7684 FreeBSD 10 \u6a5f\u5668\u4e0a\u8a2d\u5b9a\u597d apache\uff0c\u8981\u7528 https \u63d0\u4f9b svn \u670d\u52d9\uff0c\u7d50\u679c\u5728\u67d0\u4e9b\u6a5f\u5668\u4e0a\u5403\u5230\u9019\u6a23\u7684\u554f\u984c svn: E120171: Error running context: An error occurred during SSL communication \u539f\u56e0\u4e0d\u660e\uff0c\u6709\u8da3\u7684\u662f\u6709\u554f\u984c\u7684\u90a3\u5e7e\u53f0\u6a5f\u5668\u7528 svn 1.7 + neon \u7684\u8a71\u4f3c\u4e4e\u662f\u53ef\u7528\u7684\uff0c\u4f46\u662f svn 1.8 + serf \u5c31\u70b8\u6389\u4e86\u3002 \u518d\u6e2c\u8a66\u4e00\u4e0b\u767c\u73fe\u4e5f\u4e0d\u662f\u6bcf\u500b\u8edf\u9ad4\u90fd\u6703\u6709\u554f\u984c\uff0ccurl \u6d3b\u5f97\u597d\u597d\u7684\uff0cw3m (\u6587\u5b57\u6a21\u5f0f\u7684\u7db2\u9801\u700f\u89bd\u5668) \u9023\u7dda\u5c31\u70b8\u6389\u4e86\uff0c\u5403\u5230\u7684\u932f\u8aa4\u8a0a\u606f\u9577\u9019\u6a23\uff1a SSL error: error:14077458:SSL&hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[13,4591,4581],"class_list":["post-2459","post","type-post","status-publish","format-standard","hentry","category-freebsd","tag-apache","tag-freebsd","tag-openssl"],"_links":{"self":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/comments?post=2459"}],"version-history":[{"count":3,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2459\/revisions"}],"predecessor-version":[{"id":2462,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2459\/revisions\/2462"}],"wp:attachment":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/media?parent=2459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/categories?post=2459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/tags?post=2459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}