{"id":36,"date":"2024-01-16T20:10:24","date_gmt":"2024-01-16T12:10:24","guid":{"rendered":"https:\/\/blog.dzzb.me\/?p=36"},"modified":"2024-02-04T21:45:38","modified_gmt":"2024-02-04T13:45:38","slug":"%e8%a7%a3%e5%86%b3%e5%ae%9d%e5%a1%94%e9%9d%a2%e6%9d%bfssl%e6%8a%a5%e9%94%99","status":"publish","type":"post","link":"https:\/\/blog.isoho.tk\/index.php\/2024\/01\/16\/%e8%a7%a3%e5%86%b3%e5%ae%9d%e5%a1%94%e9%9d%a2%e6%9d%bfssl%e6%8a%a5%e9%94%99\/","title":{"rendered":"\u89e3\u51b3\u5b9d\u5854\u9762\u677fSSL\u62a5\u9519"},"content":{"rendered":"\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(2 * 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=\"\u5b9d\u5854\u9762\u677fSSL\u8bc1\u4e66\u5b89\u88c5\u5931\u8d25\uff0c\u62a5\u9519\uff1a Invalid version. The only valid version for X509Req is 0.\u7684\u89e3\u51b3\u65b9\u6cd5\n\n\u5982\u4f55\u89e3\u51b3\u5b9d\u5854\u9762\u677fSSL\u8bc1\u4e66\u5b89\u88c5\u5931\u8d25\uff1a Invalid version. The only valid version for X509Req is 0.\n\n\u901a\u8fc7\u5b9d\u5854\u9762\u677f\u7684\u6587\u4ef6\uff0c\u627e\u5230\u6587\u4ef6\u76ee\u5f55\uff1a\/www\/server\/panel\/class\u4e0b\u9762\u7684acme_v2.py\u6587\u4ef6\u3002\n\n\u53cc\u51fb\u6587\u4ef6\u8fdb\u5165\u7f16\u8f91\uff0c\u5e76\u901a\u8fc7\u641c\u7d22\u627e\u5230X509Req.set_version(2)\u4ee3\u7801\u6bb5 \uff0c\u5c06\u5176\u6539\u4e3aX509Req.set_version(0)\n\n\u4fee\u6539\u5b8c\u6210\u4e4b\u540e\u4fdd\u5b58\u6587\u4ef6\uff0c\u5e76\u91cd\u542f\u5b9d\u5854\u9762\u677f\u3002\u6ce8\u610f\u53ea\u8981\u91cd\u542f\u9762\u677f\u5373\u53ef\uff0c\u4e0d\u9700\u8981\u91cd\u542f\u4e3b\u673a\u3002\n\n\nPS\uff1a\u539f\u56e0\u662f\u7531\u4e8e\u670d\u52a1\u5668\u7aef\u4f7f\u7528\u4e86\u4e0d\u517c\u5bb9\u7684 OpenSSL \u7248\u672c\u5bfc\u81f4\u7684\uff0c\u670d\u52a1\u5668\u7aef\u7684X509Req \u7248\u672c\u53ea\u652f\u6301 0\uff0c\u800c\u5b9d\u5854\u8fd9\u8fb9\u9ed8\u8ba4\u7684\u7248\u672c\u4e3a2\u3002\u89e3\u51b3\u65b9\u5f0f\u662f\u628a\u5b9d\u5854\u9ed8\u8ba4\u7248\u672c\u6539\u4e3a\u53d7\u670d\u52a1\u5668\u652f\u6301\u7684\u7248\u672c0\u3002\n\" 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\">\u5b9d\u5854\u9762\u677fSSL\u8bc1\u4e66\u5b89\u88c5\u5931\u8d25<\/span><span style=\"color: #E6E6E6\">\uff0c<\/span><span style=\"color: #9CDCFE\">\u62a5\u9519<\/span><span style=\"color: #E6E6E6\">\uff1a <\/span><span style=\"color: #9CDCFE\">Invalid<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">version<\/span><span style=\"color: #E6E6E6\">. <\/span><span style=\"color: #9CDCFE\">The<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">only<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">valid<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">version<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">for<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">X509Req<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">is<\/span><span style=\"color: #E6E6E6\"> 0.<\/span><span style=\"color: #9CDCFE\">\u7684\u89e3\u51b3\u65b9\u6cd5<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">\u5982\u4f55\u89e3\u51b3\u5b9d\u5854\u9762\u677fSSL\u8bc1\u4e66\u5b89\u88c5\u5931\u8d25<\/span><span style=\"color: #E6E6E6\">\uff1a <\/span><span style=\"color: #9CDCFE\">Invalid<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">version<\/span><span style=\"color: #E6E6E6\">. <\/span><span style=\"color: #9CDCFE\">The<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">only<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">valid<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">version<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">for<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">X509Req<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">is<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #B5CEA8\">0.<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">\u901a\u8fc7\u5b9d\u5854\u9762\u677f\u7684\u6587\u4ef6<\/span><span style=\"color: #E6E6E6\">\uff0c<\/span><span style=\"color: #9CDCFE\">\u627e\u5230\u6587\u4ef6\u76ee\u5f55<\/span><span style=\"color: #E6E6E6\">\uff1a<\/span><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\u4e0b\u9762\u7684acme_v2<\/span><span style=\"color: #E6E6E6\">.<\/span><span style=\"color: #9CDCFE\">py\u6587\u4ef6<\/span><span style=\"color: #E6E6E6\">\u3002<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">\u53cc\u51fb\u6587\u4ef6\u8fdb\u5165\u7f16\u8f91<\/span><span style=\"color: #E6E6E6\">\uff0c<\/span><span style=\"color: #9CDCFE\">\u5e76\u901a\u8fc7\u641c\u7d22\u627e\u5230X509Req<\/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: #9CDCFE\">\u4ee3\u7801\u6bb5<\/span><span style=\"color: #E6E6E6\"> \uff0c<\/span><span style=\"color: #9CDCFE\">\u5c06\u5176\u6539\u4e3aX509Req<\/span><span style=\"color: #E6E6E6\">.<\/span><span style=\"color: #DCDCAA\">set_version<\/span><span style=\"color: #E6E6E6\">(<\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #E6E6E6\">)<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">\u4fee\u6539\u5b8c\u6210\u4e4b\u540e\u4fdd\u5b58\u6587\u4ef6<\/span><span style=\"color: #E6E6E6\">\uff0c<\/span><span style=\"color: #9CDCFE\">\u5e76\u91cd\u542f\u5b9d\u5854\u9762\u677f<\/span><span style=\"color: #E6E6E6\">\u3002<\/span><span style=\"color: #9CDCFE\">\u6ce8\u610f\u53ea\u8981\u91cd\u542f\u9762\u677f\u5373\u53ef<\/span><span style=\"color: #E6E6E6\">\uff0c<\/span><span style=\"color: #9CDCFE\">\u4e0d\u9700\u8981\u91cd\u542f\u4e3b\u673a<\/span><span style=\"color: #E6E6E6\">\u3002<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #9CDCFE\">PS<\/span><span style=\"color: #E6E6E6\">\uff1a<\/span><span style=\"color: #9CDCFE\">\u539f\u56e0\u662f\u7531\u4e8e\u670d\u52a1\u5668\u7aef\u4f7f\u7528\u4e86\u4e0d\u517c\u5bb9\u7684<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">OpenSSL<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">\u7248\u672c\u5bfc\u81f4\u7684<\/span><span style=\"color: #E6E6E6\">\uff0c<\/span><span style=\"color: #9CDCFE\">\u670d\u52a1\u5668\u7aef\u7684X509Req<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #9CDCFE\">\u7248\u672c\u53ea\u652f\u6301<\/span><span style=\"color: #E6E6E6\"> <\/span><span style=\"color: #B5CEA8\">0<\/span><span style=\"color: #E6E6E6\">\uff0c<\/span><span style=\"color: #9CDCFE\">\u800c\u5b9d\u5854\u8fd9\u8fb9\u9ed8\u8ba4\u7684\u7248\u672c\u4e3a2<\/span><span style=\"color: #E6E6E6\">\u3002<\/span><span style=\"color: #9CDCFE\">\u89e3\u51b3\u65b9\u5f0f\u662f\u628a\u5b9d\u5854\u9ed8\u8ba4\u7248\u672c\u6539\u4e3a\u53d7\u670d\u52a1\u5668\u652f\u6301\u7684\u7248\u672c0<\/span><span style=\"color: #E6E6E6\">\u3002<\/span><\/span>\n<span class=\"line\"><\/span><\/code><\/pre><\/div>\n\n\n\n<h4 class=\"wp-block-heading has-text-align-center\">END<\/h4>\n","protected":false},"excerpt":{"rendered":"<p>END<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-web"],"_links":{"self":[{"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/posts\/36","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=36"}],"version-history":[{"count":2,"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":117,"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/posts\/36\/revisions\/117"}],"wp:attachment":[{"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.isoho.tk\/index.php\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}