{"id":914,"date":"2019-09-07T18:42:36","date_gmt":"2019-09-07T10:42:36","guid":{"rendered":"http:\/\/www.sulabs.net\/?p=914"},"modified":"2020-08-28T18:22:47","modified_gmt":"2020-08-28T10:22:47","slug":"system-net-http-%e6%97%a0%e6%b3%95%e5%bb%ba%e7%ab%8bssl%e7%9b%91%e5%90%ac-curl-error-77-%e7%9a%84%e6%95%85%e9%9a%9c%e5%a4%84%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.sulabs.net\/?p=914","title":{"rendered":"System.Net.Http \u65e0\u6cd5\u5efa\u7acbSSL\u76d1\u542c cURL error 77 \u7684\u6545\u969c\u5904\u7406"},"content":{"rendered":"<p>Emby-Server\uff08Jellyfin) \u662f\u4e00\u4e2a\u4f18\u79c0\u7684\u5bb6\u7528\u5a92\u4f53\u670d\u52a1\u5668\uff0c\u4f7f\u7528\u5fae\u8f6fNet.Core \u6846\u67b6\uff0c\u53ef\u5b9e\u73b0\u8de8\u5e73\u53f0\u8fd0\u884c\uff0c\u5728\u4f7f\u7528Centos 7 \u8c03\u8bd5\u8fc7\u7a0b\u4e2d\uff0c\u9047\u5230SSL\u8fde\u63a5\u65e0\u6cd5\u88ab\u76d1\u542c\u7684\u60c5\u51b5\uff0c\u5bfc\u81f4\u7535\u5f71\u56fe\u7247\u548c\u4ecb\u7ecd\u4fe1\u606f\u65e0\u6cd5\u6b63\u5e38\u83b7\u53d6\uff0c\u65e5\u5fd7\u4fe1\u606f\u5982\u4e0b\uff1a<!--more--><\/p>\n<pre>[2019-09-07 16:22:05.378 +08:00] [ERR] Error in &quot;TheMovieDb&quot;\r\nSystem.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---&gt; System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.\r\n   at System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, ExceptionDispatchInfo exception)\r\n   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.ProcessReceivedBlob(Byte[] buffer, Int32 count, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest)\r\n   at System.Net.Security.SslState.PartialFrameCallback(AsyncProtocolRequest asyncRequest)\r\n--- End of stack trace from previous location where exception was thrown ---<\/pre>\n<p>\u6839\u636e\u65e5\u5fd7\u4fe1\u606f\uff0c\u5f97\u51fa\u7ed3\u8bba\u4e3a TheMovieDB \u7f51\u7ad9\u65e0\u6cd5\u5efa\u7acbSSL\u76d1\u542c\uff0c\u4f46\u4e0d\u6e05\u695a\u5177\u4f53\u539f\u56e0\uff0c\u901a\u8fc7\u767e\u5ea6 \u5f97\u77e5\u7f51\u7ad9\u5730\u5740\u4e3a https:\/\/www.themoviedb.org\/<\/p>\n<p>\u624b\u5de5\u5c1d\u8bd5\u5728\u670d\u52a1\u5668\u4e0a\u7528curl\u8bf7\u6c42\u662f\u5426\u80fd\u6b63\u5e38\u8bbf\u95ee\uff0c\u5f97\u5230\u4ee5\u4e0b\u9519\u8bef\u63d0\u793a\uff1a<br \/>\ncurl: (77) error setting certificate verify locations:<br \/>\nCAfile: \/etc\/ssl\/certs\/ca-certificates.crt<\/p>\n<p><a href=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-917 alignnone\" src=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/1.png\" alt=\"\" width=\"660\" height=\"196\" srcset=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/1.png 660w, https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/1-300x89.png 300w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/a><br \/>\n\u770b\u6765\u662f\u670d\u52a1\u5668\u81ea\u8eab\u4e5f\u56e0SSL\u8bc1\u4e66\u95ee\u9898\u800c\u5bfc\u81f4https\u7f51\u7ad9\u65e0\u6cd5\u6b63\u5e38\u8bbf\u95ee\uff0c\u53ef\u521d\u6b65\u5224\u65ademby-server\u4e5f\u8c03\u7528\u4e86\u7cfb\u7edf\u7684curl\u5e93\u3002<br \/>\n\u968f\u540e\u6362\u4e86\u4e00\u53f0\u670d\u52a1\u5668\u505a\u6d4b\u8bd5\uff0c\u8bbf\u95ee\u5219\u6b63\u5e38,\u5728\u8f93\u51fa\u7684\u8be6\u7ec6\u65e5\u5fd7\u4e2d\uff0c\u6b63\u5e38\u7684\u8bf7\u6c42\u5219\u591a\u4e86\u4e00\u6761\u4fe1\u606f<br \/>\nInitializing NSS with certpath: sql:etc\/pki\/nssdb<\/p>\n<p><a href=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/20190907174830.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-915 alignnone\" src=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/20190907174830.png\" alt=\"\" width=\"669\" height=\"267\" srcset=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/20190907174830.png 669w, https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/20190907174830-300x120.png 300w\" sizes=\"auto, (max-width: 669px) 100vw, 669px\" \/><\/a><br \/>\n\u7ee7\u7eed\u68c0\u67e5curl \u7248\u672c\uff0c\u53d1\u73b0\u6709\u95ee\u9898\u7684\u670d\u52a1\u5668 libcurl \u5e93\u7248\u672c\u4e3a 7.64.1 \u4e0b\u56fe\u6240\u793a\uff0c\u800c\u5de5\u4f5c\u6b63\u5e38\u7684\u670d\u52a1\u5668 libcurl \u7248\u672c\u4e3a 7.29.0\uff0c\u8fd8\u5305\u542b\u4e86NSS,LIBIDN\u7b49\u6269\u5c55<\/p>\n<p><a href=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-916 alignnone\" src=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/2.png\" alt=\"\" width=\"901\" height=\"84\" srcset=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/2.png 901w, https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/2-300x28.png 300w, https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/2-768x72.png 768w\" sizes=\"auto, (max-width: 901px) 100vw, 901px\" \/><\/a><br \/>\n\u7ee7\u7eed\u68c0\u67e5\uff0c\u53d1\u73b0\u6709\u95ee\u9898\u7684\u670d\u52a1\u5668\u7cfb\u7edfRPM\u5305\u7248\u672c\u4e3a 7.29.0 \uff0c\u5e76\u4e0d\u662f 7.64.1 \u7248\u672c\uff0c\u770b\u6765\u53ef\u80fd\u662f\u7cfb\u7edf\u80af\u80fd\u662f\u52a0\u8f7d\u4e86\u9519\u8bef\u7684\u52a8\u6001\u5e93\u3002<\/p>\n<p><a href=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/QQ\u56fe\u724720190907182650.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-918 alignnone\" src=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/QQ\u56fe\u724720190907182650.png\" alt=\"\" width=\"409\" height=\"42\" srcset=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/QQ\u56fe\u724720190907182650.png 409w, https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/QQ\u56fe\u724720190907182650-300x31.png 300w\" sizes=\"auto, (max-width: 409px) 100vw, 409px\" \/><\/a><br \/>\n\u7ee7\u7eed\u68c0\u67e5\uff0c\u4f7f\u7528ldconfig -p | grep libcurl&nbsp; \u53ef\u770b\u5230\u7cfb\u7edf\u4f7f\u7528\u4e86\u591a\u4e2alibcurl\u5e93\u6587\u4ef6\u8def\u5f84\uff0c\u5176\u4e2d2\u4e2a\u4e3a \/usr\/local\/lib \u8def\u5f84<\/p>\n<p><a href=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-919 alignnone\" src=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/4.png\" alt=\"\" width=\"629\" height=\"74\" srcset=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/4.png 629w, https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/4-300x35.png 300w\" sizes=\"auto, (max-width: 629px) 100vw, 629px\" \/><\/a><br \/>\n\u968f\u540e\u60f3\u8d77\u6765\u5728\u4e4b\u524d\u7684\u4e00\u4e2a\u8f6f\u4ef6\u8c03\u8bd5\u4e2d\uff0c\u624b\u5de5\u7f16\u8bd1\u8fc7libcurl \u5e76\u7f16\u8f91 \/etc\/ld.so.conf \u52a0\u8f7d\u4e86\/usr\/local\/lib \u5e93\u6587\u4ef6\u67e5\u627e\u8def\u5f84\u3002<br \/>\n\u91cd\u65b0\u7f16\u8f91 \/etc\/ld.so.conf \u914d\u7f6e\u6587\u4ef6\uff0c\u53d6\u6d88\/usr\/local\/lib \u67e5\u627e\u8def\u5f84\u5e76\u51b2\u6267\u884c ldconfig&nbsp;<br \/>\n\u5904\u7406\u540e\uff0ccurl \u91cd\u65b0\u4f7f\u7528\u4e86\u6b63\u786e\u7684libcurl\u5e93\u7248\u672c 7.29.0 \u5e76\u5df2\u80fd\u6b63\u786e\u8bbf\u95ee\u7f51\u7ad9\u3002<\/p>\n<p><a href=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-920 alignnone\" src=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/5.png\" alt=\"\" width=\"1064\" height=\"360\" srcset=\"https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/5.png 1064w, https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/5-300x102.png 300w, https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/5-768x260.png 768w, https:\/\/www.sulabs.net\/wp-content\/uploads\/2019\/09\/5-1024x346.png 1024w\" sizes=\"auto, (max-width: 1064px) 100vw, 1064px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Emby-Server\uff08Jellyfin) \u662f\u4e00\u4e2a\u4f18\u79c0\u7684\u5bb6\u7528\u5a92\u4f53\u670d\u52a1\u5668\uff0c\u4f7f\u7528\u5fae\u8f6f &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/www.sulabs.net\/?p=914\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"aside","meta":{"footnotes":""},"categories":[3],"tags":[120],"class_list":["post-914","post","type-post","status-publish","format-aside","hentry","category-linux","tag-curl","post_format-post-format-aside"],"_links":{"self":[{"href":"https:\/\/www.sulabs.net\/index.php?rest_route=\/wp\/v2\/posts\/914","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sulabs.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sulabs.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sulabs.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sulabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=914"}],"version-history":[{"count":15,"href":"https:\/\/www.sulabs.net\/index.php?rest_route=\/wp\/v2\/posts\/914\/revisions"}],"predecessor-version":[{"id":957,"href":"https:\/\/www.sulabs.net\/index.php?rest_route=\/wp\/v2\/posts\/914\/revisions\/957"}],"wp:attachment":[{"href":"https:\/\/www.sulabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sulabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sulabs.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}