{"id":702,"date":"2024-12-22T22:42:13","date_gmt":"2024-12-22T14:42:13","guid":{"rendered":"https:\/\/blog.isoho.tk\/?p=702"},"modified":"2024-12-22T22:50:45","modified_gmt":"2024-12-22T14:50:45","slug":"%e5%ae%9d%e5%a1%94%e9%9d%a2%e6%9d%bf-lets-encrypt-%e7%ad%be%e5%8f%91ssl%e8%af%81%e4%b9%a6%e6%8a%a5%e9%94%99","status":"publish","type":"post","link":"https:\/\/blog.isoho.tk\/index.php\/2024\/12\/22\/%e5%ae%9d%e5%a1%94%e9%9d%a2%e6%9d%bf-lets-encrypt-%e7%ad%be%e5%8f%91ssl%e8%af%81%e4%b9%a6%e6%8a%a5%e9%94%99\/","title":{"rendered":"\u5b9d\u5854\u9762\u677f Let&#8217;s Encrypt \u7b7e\u53d1SSL\u8bc1\u4e66\u62a5\u9519"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u89e3\u51b3\u65b9\u6848\u2026\u2026<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u62a5\u9519\u95ee\u98981\uff1amodule &#8216;OpenSSL.crypto&#8217; has no attribute &#8216;sign&#8217;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">SSH\u8fde\u63a5\u670d\u52a1\u5668\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#E6E6E6;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#222222\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"btpip install pyOpenSSL==24.2.1 -U\" style=\"color:#E6E6E6;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki slack-dark\" style=\"background-color: #222222\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #9CDCFE\">btpip<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">install<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">pyOpenSSL<\/span><span style=\"color: #D4D4D4\">==<\/span><span style=\"color: #B5CEA8\">24.2<\/span><span style=\"color: #E6E6E6\">.<\/span><span style=\"color: #B5CEA8\">1<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #D4D4D4\">-<\/span><span style=\"color: #9CDCFE\">U<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u91cd\u542f\u5b9d\u5854\u9762\u677f\uff1abt restart<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">\u62a5\u9519\u95ee\u98982\uff1a Invalid version. The only valid version for X509Req is 0.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u8fc7\u5b9d\u5854\u9762\u677f\u7684\u6587\u4ef6\uff0c\u627e\u5230\u6587\u4ef6\u76ee\u5f55\uff1a<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#E6E6E6;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#222222\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"\/www\/server\/panel\/class\/\u8def\u5f84\u5185\u7684\u201cacme_v2.py\u201d\u6587\u4ef6\u3002\n\u641c\u7d22\u6587\u4ef6\uff1aX509Req.set_version(2) \u6539\u4e3a (0)\" style=\"color:#E6E6E6;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki slack-dark\" style=\"background-color: #222222\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #D4D4D4\">\/<\/span><span style=\"color: #9CDCFE\">www<\/span><span style=\"color: #D4D4D4\">\/<\/span><span style=\"color: #9CDCFE\">server<\/span><span style=\"color: #D4D4D4\">\/<\/span><span style=\"color: #9CDCFE\">panel<\/span><span style=\"color: #D4D4D4\">\/<\/span><span style=\"color: #9CDCFE\">class<\/span><span style=\"color: #D4D4D4\">\/<\/span><span style=\"color: #9CDCFE\">\u8def\u5f84\u5185\u7684<\/span><span style=\"color: #E6E6E6\">\u201c<\/span><span style=\"color: #9CDCFE\">acme_v2<\/span><span style=\"color: #E6E6E6\">.<\/span><span style=\"color: #9CDCFE\">py<\/span><span style=\"color: #E6E6E6\">\u201d<\/span><span style=\"color: #9CDCFE\">\u6587\u4ef6<\/span><span style=\"color: #E6E6E6\">\u3002<\/span><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">\u641c\u7d22\u6587\u4ef6<\/span><span style=\"color: #E6E6E6\">\uff1a<\/span><span style=\"color: #9CDCFE\">X509Req<\/span><span style=\"color: #E6E6E6\">.<\/span><span style=\"color: #DCDCAA\">set_version<\/span><span style=\"color: #E6E6E6\">(<\/span><span style=\"color: #B5CEA8\">2<\/span><span style=\"color: #E6E6E6\">) <\/span><span style=\"color: #DCDCAA\">\u6539\u4e3a<\/span><span style=\"color: #E6E6E6\"> (<\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #E6E6E6\">)<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u91cd\u542f\u5b9d\u5854\u9762\u677f\uff1abt restart<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>END<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u89e3\u51b3\u65b9\u6848\u2026\u2026 \u62a5\u9519\u95ee\u98981\uff1amod&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-702","post","type-post","status-publish","format-standard","hentry","category-techshare"],"_links":{"self":[{"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/posts\/702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/comments?post=702"}],"version-history":[{"count":8,"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/posts\/702\/revisions"}],"predecessor-version":[{"id":711,"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/posts\/702\/revisions\/711"}],"wp:attachment":[{"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/media?parent=702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/categories?post=702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/tags?post=702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}