{"id":93451,"date":"2020-04-06T11:11:57","date_gmt":"2020-04-06T03:11:57","guid":{"rendered":"http:\/\/4563.org\/?p=93451"},"modified":"2020-04-06T11:11:57","modified_gmt":"2020-04-06T03:11:57","slug":"acme-sh-%e4%b8%8d%e8%87%aa%e5%8a%a8%e6%9b%b4%e6%96%b0%e8%af%81%e4%b9%a6%ef%bc%8c%e6%9c%89%e4%bb%80%e4%b9%88%e5%8a%9e%e6%b3%95-debug-%e5%90%97%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=93451","title":{"rendered":"acme.sh \u4e0d\u81ea\u52a8\u66f4\u65b0\u8bc1\u4e66\uff0c\u6709\u4ec0\u4e48\u529e\u6cd5 debug \u5417\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  acme.sh \u4e0d\u81ea\u52a8\u66f4\u65b0\u8bc1\u4e66\uff0c\u6709\u4ec0\u4e48\u529e\u6cd5 debug \u5417\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : black11black <\/span>  <span><i><\/i> 26<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5982\u9898\uff0c\u4eca\u5e74 1 \u6708\u6302\u7684\u8bc1\u4e66\uff0c\u524d\u51e0\u5929\u53d1\u73b0\u6302\u4e86\uff0c\u540e\u53f0 acme \u6ca1\u6709\u81ea\u52a8\u66f4\u65b0\uff0c\u770b\u4e86\u4e00\u773c acme \u7684 wiki\uff0c\u5173\u4e8e\u51fa\u9519\u7684\u60c5\u51b5\u4ec0\u4e48\u4e5f\u6ca1\u5199\uff0c\u4e0d\u592a\u6e05\u695a\u53d1\u751f\u4e86\u4ec0\u4e48\uff0c\u8001\u54e5\u4eec\u77e5\u9053\u6709\u4ec0\u4e48\u529e\u6cd5\u4fee\u590d\u5417\uff1f<\/p>\n<p>==========================================<\/p>\n<p>\u8fd8\u662f\u6211\u5f53\u521d\u7684\u64cd\u4f5c\u6709\u4ec0\u4e48\u95ee\u9898\uff0c\u6211\u5f53\u521d\u662f\u6309\u7167\u8fd9\u4e2a\u6b65\u9aa4\u64cd\u4f5c\u7684<\/p>\n<pre><code># \u5b89\u88c5 acme.sh curl https:\/\/get.acme.sh | sh   # \u4e0b\u4e00\u6b65 acme.sh --issue -d example.org --nginx  # \u6210\u529f\u4e4b\u540e acme.sh  --installcert  -d  example.org             --key-file   \/etc\/nginx\/ssl\/example.org.key           --fullchain-file \/etc\/nginx\/ssl\/example.org.cer           --reloadcmd  \"service nginx force-reload\" <\/code><\/pre>\n<p>\u4ee5\u4e0a\u8fd9\u79cd\u6ce8\u518c\u548c\u8fde\u63a5 nginx \u7684\u65b9\u6cd5\uff0c\u8bb0\u5f97\u5f53\u521d\u662f\u7167\u7740 wiki \u5199\u7684\uff0c\u6709\u54ea\u91cc\u9519\u4e86\u5417\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>11<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1125321\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lpd0155 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u624b\u52a8\u5457                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1125322\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Trim21 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709&#8211;debug \u53c2\u6570<br \/>\u5927\u6982\u56e0\u4e3a\u6709\u4e2a le \u7684\u57df\u540d\u8bbf\u95ee\u4e0d\u7545\u5427\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1125323\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : noqwerty <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u624b\u52a8 force renew \u4e00\u4e0b\u770b\u770b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1125324\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : msg7086 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u624b\u52a8\u66f4\u65b0\u4e00\u4e0b\u770b\u65e5\u5fd7\u554a\u3002\u53e6\u5916\u53ef\u4ee5\u8ba9 acme \u81ea\u5df1\u5347\u7ea7\u4e00\u4e0b\u770b\u770b\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1125325\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : silverfox <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u539f\u56e0\u6709\u53ef\u80fd\u662f\u8fd9\u4e2a www.v2ex.com\/t\/661753                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1125326\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Waffle <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             acme.sh \u4f1a\u751f\u6210\u4e00\u6761 crontab\uff0c\u9760\u5b83\u5b9a\u671f\u66f4\u65b0\u3002\u628a\u8fd9\u6761 crontab \u590d\u5236\u51fa\u6765\u52a0\u4e0a&#8211;debug \u53c2\u6570\u624b\u52a8\u6267\u884c\uff0c\u770b\u95ee\u9898\u5728\u54ea\u91cc                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1125327\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wwwwllll5636690 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             crontab -e \u547d\u4ee4\u8fdb\u53bb\u770b\u770b\u5b9a\u65f6\u4efb\u52a1\u6709\u6ca1\u6709\uff0c\u5982\u679c\u6ca1\u6709\u52a0\u4e4b\u5982\u4e0b\uff0c\u5bf9\u5e94\u8def\u5f84\u6539\u4e00\u4e0b<br \/>17 0 * * * &#8220;\/root\/.acme.sh&#8221;\/acme.sh &#8211;cron &#8211;home &#8220;\/root\/.acme.sh&#8221; &gt; \/dev\/null<\/p>\n<p>\u5982\u679c\u6709\u4f46\u662f\u6000\u7591\u6267\u884c\u6709\u95ee\u9898\uff0c\u628a\u540e\u9762 \/dev\/null \u6539\u6210\u4f60\u8981\u8bb0\u5f55\u65e5\u5fd7\u7684\u8def\u5f84\uff0c\u5230\u65f6\u5019\u67e5\u770b\u4e00\u4e0b\u65e5\u5fd7<\/p>\n<p>\u53e6\u5916\u4f60\u4e0a\u9762\u7684\u547d\u4ee4\u7b2c\u4e8c\u548c\u7b2c\u4e09\u53ef\u4ee5\u5408\u6210\u4e00\u6761\u547d\u4ee4\uff0c\u4f8b\u5982\u4e0b\u9762<br \/>acme.sh &#8211;issue &#8211;dns dns_cf -d example.com <br \/> &#8211;key-file \/path\/to\/private.key <br \/> &#8211;fullchain-file \/path\/to\/cert.crt <br \/> &#8211;reloadcmd &#8220;systemctl force-reload nginx.service&#8221;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1125328\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : charexcalibur <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6216\u8005\u4f60\u53ef\u4ee5\u5347\u7ea7\u4e00\u4e0b acme.sh                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1125329\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jiangyang123 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u524d\u6bb5\u65f6\u95f4 dnspod \u7684 api \u5347\u7ea7\u4e86,\u65e7\u7248\u7684 acme.sh \u4e0d\u517c\u5bb9<\/p>\n<p>\u4ec5\u4f9b\u53c2\u8003                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1125330\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : belin520 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u55ef\uff0c\u6628\u5929\u521a acme.sh &#8211;upgrade \u4e86\u4e00\u4e0b\u5c31\u597d\u4e86\uff0c\u5e94\u8be5\u662f\u6d41\u7a0b\u6709\u4e9b\u53d8\u66f4\u3002\u6211\u662f\u770b\u6211\u7684\u7f51\u7ad9\u600e\u4e48\u8981\u5230\u671f\u4e86\u8fd8\u6ca1\u6709\u66f4\u65b0\uff0c\u5c31\u77e5\u9053 acme \u8981\u81ea\u6211\u66f4\u65b0\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1125331\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : privil <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             acme.sh \u6211\u4e5f\u66f4\u65b0\u4e86\uff0c\u8fd8\u662f\u4e0d\u884c\uff0c\u4e0d\u77e5\u9053\u4ec0\u4e48\u9b3c\u4e86 = =                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>acme.sh \u4e0d\u81ea\u52a8\u66f4\u65b0\u8bc1\u4e66\uff0c\u6709&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/93451"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=93451"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/93451\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=93451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=93451"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=93451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}