{"id":628,"date":"2017-08-29T16:18:34","date_gmt":"2017-08-29T07:18:34","guid":{"rendered":"https:\/\/pc-taskal.net\/howto\/?p=628"},"modified":"2020-04-30T18:31:17","modified_gmt":"2020-04-30T09:31:17","slug":"letsencrypt-certbot-renew-error","status":"publish","type":"post","link":"https:\/\/pc-taskal.net\/howto\/service\/letsencrypt-certbot-renew-error","title":{"rendered":"LetsEncrypt\u306ecertbot\u81ea\u52d5\u66f4\u65b0\u30a8\u30e9\u30fc"},"content":{"rendered":"<p>\u7a81\u7136\u3084\u3063\u3066\u304d\u305fLet&#8217;s Encrypt\u304b\u3089\u306e\u30e1\u30fc\u30eb\u3002<\/p>\n<p>Let&#8217;s Encrypt certificate expiration notice for domain &#8220;pc-taskal.net&#8221;<\/p>\n<p>&nbsp;<\/p>\n<pre><code class=\"language-markup\">\"&gt;Hello,\r\n\r\nYour certificate (or certificates) for the names listed below will expire in\r\n19 days (on 17 Sep 17 07:36 +0000). Please make sure to renew\r\nyour certificate before then, or visitors to your website will encounter errors.\r\n\r\npc-taskal.net\r\n\r\nFor any questions or support, please visit https:\/\/community.letsencrypt.org\/.\r\nUnfortunately, we can't provide support by email.<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u3042\u306819\u65e5\u3067\u8a3c\u660e\u66f8\u306e\u671f\u9650\u304c\u5207\u308c\u307e\u3059\u3088\u3068\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-629\" src=\"https:\/\/pc-taskal.net\/howto\/wp-content\/uploads\/2017\/08\/0829sslc.png\" alt=\"\" width=\"268\" height=\"130\" srcset=\"https:\/\/pc-taskal.net\/howto\/wp-content\/uploads\/2017\/08\/0829sslc.png 1200w, https:\/\/pc-taskal.net\/howto\/wp-content\/uploads\/2017\/08\/0829sslc-320x155.png 320w, https:\/\/pc-taskal.net\/howto\/wp-content\/uploads\/2017\/08\/0829sslc-1024x497.png 1024w, https:\/\/pc-taskal.net\/howto\/wp-content\/uploads\/2017\/08\/0829sslc-768x372.png 768w, https:\/\/pc-taskal.net\/howto\/wp-content\/uploads\/2017\/08\/0829sslc-530x257.png 530w, https:\/\/pc-taskal.net\/howto\/wp-content\/uploads\/2017\/08\/0829sslc-565x274.png 565w, https:\/\/pc-taskal.net\/howto\/wp-content\/uploads\/2017\/08\/0829sslc-710x344.png 710w, https:\/\/pc-taskal.net\/howto\/wp-content\/uploads\/2017\/08\/0829sslc-725x352.png 725w\" sizes=\"auto, (max-width: 268px) 100vw, 268px\" \/><\/p>\n<p>cron\u306b\u4ed5\u8fbc\u3093\u3067\u81ea\u52d5\u66f4\u65b0\u306b\u3057\u3066\u3042\u308b\u306e\u3067\u5927\u4e08\u592b\u3060\u308d\u3046\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u305d\u308d\u305d\u308d\u66f4\u65b0\u3055\u308c\u305f\u3060\u308d\u3046\u3068\u30ed\u30b0\u3092\u898b\u3066\u307f\u308b\u3068\u30fb\u30fb\u30fb<\/p>\n<p>\u3069\u3046\u3084\u3089\u30b5\u30a4\u30c8\u306eSSL\u8a3c\u660e\u66f8\u306ecertbot\u306b\u3088\u308b\u81ea\u52d5\u66f4\u65b0\u304c\u30a8\u30e9\u30fc\u3067\u51fa\u6765\u306a\u3044\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u30a8\u30e9\u30fc\u306e\u5185\u5bb9<\/h2>\n<p>certbot\u306e\u30ed\u30b0\u306f \/var\/log\/letsencrypt\/letsencrypt.log \u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u554f\u984c\u3068\u306a\u3063\u3066\u3044\u308b\u7b87\u6240\u3092\u4e00\u90e8\u6458\u51fa\u3057\u3066\u307f\u308b\u3068\u30fb\u30fb\u30fb<\/p>\n<pre class=\"line-numbers\"><code class=\"language-markup\">2017-08-29 05:56:26,689:DEBUG:certbot.plugins.disco:Other error:(PluginEntryPoint#apache): There has been an error in parsing the file \/etc\/apache2\/sites-enabled\/default-ssl.conf on line 147: Syntax error\r\nTraceback (most recent call last):\r\nPluginError: There has been an error in parsing the file \/etc\/apache2\/sites-enabled\/default-ssl.conf on line 147: Syntax error\r\n2017-08-29 05:56:26,689:DEBUG:certbot.plugins.selection:No candidate plugin\r\n2017-08-29 05:56:26,690:DEBUG:certbot.plugins.selection:No candidate plugin\r\n2017-08-29 05:56:26,690:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None\r\n2017-08-29 05:56:26,690:INFO:certbot.main:Could not choose appropriate plugin: The apache plugin is not working; there may be problems with your existing configuration.\r\nThe error was: PluginError('There has been an error in parsing the file \/etc\/apache2\/sites-enabled\/default-ssl.conf on line 147: Syntax error',)\r\n2017-08-29 05:56:26,691:WARNING:certbot.renewal:Attempting to renew cert from \/etc\/letsencrypt\/renewal\/pc-taskal.net.conf produced an unexpected error: The apache plugin is not working; there may be problems with your existing configuration.\r\nThe error was: PluginError('There has been an error in parsing the file \/etc\/apache2\/sites-enabled\/default-ssl.conf on line 147: Syntax error',). Skipping.\r\nThe error was: PluginError('There has been an error in parsing the file \/etc\/apache2\/sites-enabled\/default-ssl.conf on line 147: Syntax error',)\r\n\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u3069\u3046\u3082default-ssl.conf \u3042\u305f\u308a\u306b\u554f\u984c\u304c\u3042\u308a\u305d\u3046\u3067\u3059\u3002<br \/>\n\u305d\u3057\u3066\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u554f\u984c\u306e\u5143\u51f6\u306a\u306e\u304b\u306a\u3068\u60f3\u50cf\u3067\u304d\u307e\u3059\u306d\u3002<\/p>\n<p class=\"al-c\">\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af<br \/>\n<script async=\"\" src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script><br \/>\n<ins class=\"adsbygoogle\" style=\"display: block; text-align: center;\" data-ad-format=\"fluid\" data-ad-layout=\"in-article\" data-ad-client=\"ca-pub-9013483608213524\" data-ad-slot=\"8147264551\"><\/ins><br \/>\n<script><br \/>\n     (adsbygoogle = window.adsbygoogle || []).push({});<br \/>\n<\/script><\/p>\n<h2>apache2\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u554f\u984c\u304c\u306a\u3044\u304b\u78ba\u8a8d<\/h2>\n<p>apache2\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u78ba\u8a8d\u3059\u308b\u4ee5\u524d\u306b\u3001\u3061\u3083\u3093\u3068\u8d77\u52d5\u3057\u3066\u3044\u308b\u306e\u3067\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u554f\u984c\u306f\u7121\u3044\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>\u5ff5\u306e\u70ba\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markup\"># apache2ctl configtest\r\nSyntax OK<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u3069\u3046\u3084\u3089\u554f\u984c\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u624b\u52d5\u3067\u66f4\u65b0\u78ba\u8a8d\u3057\u3066\u307f\u308b<\/h2>\n<p>certbot\u30b3\u30de\u30f3\u30c9\u3092\u624b\u52d5\u3067\u5b9f\u884c\u3057\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markup\"># certbot renew --dry-run<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u3084\u306f\u308a\u30d7\u30e9\u30b0\u30a4\u30f3\u30a8\u30e9\u30fc\u3068Syntax error\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3046\u306a\u308b\u3068\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d\u3059\u308b\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u554f\u984c\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u78ba\u8a8d<\/h2>\n<p>\u30ed\u30b0\u304b\u3089\u554f\u984c\u306e\u30d5\u30a1\u30a4\u30eb\u306f default-ssl.conf \u3060\u3068\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\u3059\u306e\u3067\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u304b\u3001\u305d\u306e\u95a2\u9023\u30d5\u30a1\u30a4\u30eb\u306e\u554f\u984c\u3068\u601d\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u30a8\u30e9\u30fc\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u4f7f\u3063\u3066\u3044\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u306fSSL\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u306e\u3067\u3001\u305d\u306e\u3042\u305f\u308a\u304c\u602a\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>Syntax error\u3068\u51fa\u3066\u3044\u308b\u306e\u3067\u3001\u3069\u3053\u304b\u69cb\u6587\u304c\u9593\u9055\u3063\u3066\u3044\u308b\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u306f\u3058\u3081\u306e\u3061\u306f\u5168\u7136\u6c17\u4ed8\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u767a\u898b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u521d\u671f\u72b6\u614b\u3060\u3068<\/p>\n<p>&lt;IfModule mod_ssl.c&gt;<br \/>\n&lt;VirtualHost _default_:443&gt;<\/p>\n<p>\u3067\u59cb\u307e\u3063\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3046\u306a\u308b\u3068\u7d42\u308f\u308a\u306f<\/p>\n<p>&lt;\/VirtualHost&gt;<br \/>\n&lt;\/IfModule&gt;<\/p>\n<p>\u3068\u306a\u308b\u306f\u305a\u306a\u306e\u3067\u3059\u304c\u3001\u4f55\u304b\u306e\u62cd\u5b50\u306b\u6d88\u3057\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3057\u3087\u3046\u304b\u3001&lt;\/IfModule&gt; \u306e\u9589\u3058\u30bf\u30b0\u304c\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30bf\u30b0\u304c\u9589\u3058\u3066\u3044\u306a\u3044\u306e\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3044\u305f\u3088\u3046\u3067\u3059\u3002<\/p>\n<p class=\"al-c\">\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af<br \/>\n<iframe loading=\"lazy\" width=\"300\" height=\"250\" style=\"border: none;\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?o=9&amp;p=12&amp;l=ur1&amp;category=amazonrotate&amp;f=ifr&amp;linkID=73c21e9e01040670916aa4bc8dbc0851&amp;t=pctaskal-22&amp;tracking_id=pctaskal-22\"><\/iframe><\/p>\n<h2>\u4fee\u6b63\u3057\u3066\u518d\u5ea6\u5b9f\u884c<\/h2>\n<p>\u4fee\u6b63\u3057\u3066\u518d\u5ea6\u30c9\u30e9\u30a4\u30e9\u30f3\u3057\u3066\u307f\u308b\u3068\u554f\u984c\u306a\u304f\u5b8c\u8d70\u3002<\/p>\n<p>\u66f4\u65b0\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markup\"># certbot renew<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u6210\u529f\u3067\u3059\u3002<\/p>\n<p>\u8a3c\u660e\u66f8\u3082\u3061\u3083\u3093\u3068\u66f4\u65b0\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u81ea\u52d5\u66f4\u65b0\u306e\u6ce8\u610f\u70b9<\/h2>\n<p>Let&#8217;s Encrypt \u306f3\u30f6\u6708\u3054\u3068\u306b\u66f4\u65b0\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u3067\u9762\u5012\u3067\u3059\u304c\u3001\u81ea\u52d5\u3067\u66f4\u65b0\u3057\u3066\u304f\u308c\u308b\u306e\u3067cron\u306b\u4ed5\u8fbc\u3093\u3067\u304a\u3051\u3070\u5b89\u5fc3\u3060\u3068\u601d\u3063\u3066\u3044\u308b\u3068\u5927\u9593\u9055\u3044\u3067\u3057\u305f\u3002<\/p>\n<p>\u671f\u9650\u304c\u3042\u308b\u3046\u3061\u306e\u52d5\u4f5c\u3068\u3001\u671f\u9650\u304c\u8fd1\u3065\u3044\u3066\u304d\u305f\u6642\u306e\u52d5\u4f5c\u306f\u9055\u3046\u306e\u3067\u3001\u5b9f\u969b\u306e\u66f4\u65b0\u4f5c\u696d\u304c\u5165\u308b\u6642\u671f\u306b\u306a\u308b\u3068\u6319\u52d5\u304c\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n<p>\u671f\u9650\u306e\u3042\u308b\u3046\u3061\u306f\u30a8\u30e9\u30fc\u304c\u7121\u304b\u3063\u305f\u306e\u3067\u5b89\u5fc3\u3068\u3044\u3046\u8a33\u306b\u306f\u3044\u304b\u305a\u3001\u5b9f\u969b\u306b\u66f4\u65b0\u304c\u81ea\u52d5\u3067\u884c\u308f\u308c\u308b\u304b\u78ba\u8a8d\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u7279\u306b\u521d\u56de\u306e\u66f4\u65b0\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u306d\u3002<\/p>\n<p>\u3042\u3068\u3001certbot\u81ea\u4f53\u3082Python\u3067\u66f8\u304b\u308c\u3066\u3044\u308b\u306e\u3067\u3001python\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u306a\u3069\u304c\u3042\u3063\u305f\u5834\u5408\u3082\u6ce8\u610f\u3057\u3066\u304a\u3044\u305f\u307b\u3046\u304c\u826f\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n<p>\u81ea\u52d5\u3060\u304b\u3089\u5b89\u5fc3\u3067\u306f\u306a\u304f\u3001\u671f\u9650\u304c\u5207\u308c\u308b\u524d\u306b\u3061\u3083\u3093\u3068\u81ea\u5206\u3067\u78ba\u8a8d\u3057\u3066\u304a\u3044\u305f\u307b\u3046\u304c\u826f\u3055\u305d\u3046\u3067\u3059\u306d\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7a81\u7136\u3084\u3063\u3066\u304d\u305fLet&#8217;s Encrypt\u304b\u3089\u306e\u30e1\u30fc\u30eb\u3002 Let&#8217;s Encrypt certificate expiration notice for domain &#8220;pc-taska [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":629,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,30,37],"tags":[79,52,68],"class_list":["post-628","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog-server","category-service","category-blog","tag-lets-encrypt","tag-linux","tag-server"],"_links":{"self":[{"href":"https:\/\/pc-taskal.net\/howto\/wp-json\/wp\/v2\/posts\/628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pc-taskal.net\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pc-taskal.net\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pc-taskal.net\/howto\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pc-taskal.net\/howto\/wp-json\/wp\/v2\/comments?post=628"}],"version-history":[{"count":0,"href":"https:\/\/pc-taskal.net\/howto\/wp-json\/wp\/v2\/posts\/628\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pc-taskal.net\/howto\/wp-json\/wp\/v2\/media\/629"}],"wp:attachment":[{"href":"https:\/\/pc-taskal.net\/howto\/wp-json\/wp\/v2\/media?parent=628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pc-taskal.net\/howto\/wp-json\/wp\/v2\/categories?post=628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pc-taskal.net\/howto\/wp-json\/wp\/v2\/tags?post=628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}