{"id":1668,"date":"2015-12-22T22:52:27","date_gmt":"2015-12-22T21:52:27","guid":{"rendered":"http:\/\/www.zarrelli.org\/blog\/?p=1668"},"modified":"2015-12-22T23:05:14","modified_gmt":"2015-12-22T22:05:14","slug":"lets-encrypt-automatic-certificate-renewal","status":"publish","type":"post","link":"https:\/\/www.zarrelli.org\/blog\/lets-encrypt-automatic-certificate-renewal\/","title":{"rendered":"Let&#8217;s Encrypt automatic certificate renewal"},"content":{"rendered":"<p>Just few lines with the configuration I use for the automatic certificate renewal.<\/p>\n<pre class=\"lang:sh decode:true\">cat cli.ini \r\n\r\n# This is an example of the kind of things you can do in a configuration file.\r\n# All flags used by the client can be configured here. Run Let's Encrypt with\r\n# \"--help\" to learn more about the available options.\r\n\r\n# Use a 4096 bit RSA key instead of 2048\r\nrsa-key-size = 4096\r\n\r\n# Always use the staging\/testing server\r\n#server = https:\/\/acme-staging.api.letsencrypt.org\/directory\r\nemail = giorgio@zarrelli.org\r\ndomains= www.zarrelli.org\r\ntext = True\r\nagree-tos = True\r\nauthenticator = apache\r\nrenew-by-default = true\r\nverbose = True\r\n\r\n# Uncomment to use the standalone authenticator on port 443\r\n# authenticator = standalone\r\n# standalone-supported-challenges = tls-sni-01\r\n\r\n# Uncomment to use the webroot authenticator. Replace webroot-path with the\r\n# path to the public_html \/ webroot folder being served by your web server.\r\n# authenticator = webroot\r\n# webroot-path = \/usr\/share\/nginx\/html\r\n<\/pre>\n<p>And this is the content of the root crontab<\/p>\n<pre class=\"lang:sh decode:true\">@monthly \/usr\/sbin\/letsencrypt\/letsencrypt-auto --config \/etc\/letsencrypt\/cli.ini --no-redirect\r\n<\/pre>\n<p>That&#8217;s all folks!<\/p>\n<p style=\"text-align: right\"><a href=\"https:\/\/letsencrypt.readthedocs.org\/en\/latest\/\" target=\"_blank\">Let&#8217;s Encrypt<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just few lines with the configuration I use for the automatic certificate renewal. cat cli.ini # This is an example of the kind of things you can do in a configuration file. # All flags used by the client can be configured here. Run Let&#8217;s Encrypt with # &#8220;&#8211;help&#8221; to learn more about the available &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[179,503,501,502],"class_list":["post-1668","post","type-post","status-publish","format-standard","hentry","category-di-tutto-un-po","tag-apache","tag-certificates","tag-letsencrypt","tag-ssl","without-featured-image"],"_links":{"self":[{"href":"https:\/\/www.zarrelli.org\/blog\/wp-json\/wp\/v2\/posts\/1668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zarrelli.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zarrelli.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zarrelli.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zarrelli.org\/blog\/wp-json\/wp\/v2\/comments?post=1668"}],"version-history":[{"count":0,"href":"https:\/\/www.zarrelli.org\/blog\/wp-json\/wp\/v2\/posts\/1668\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zarrelli.org\/blog\/wp-json\/wp\/v2\/media?parent=1668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zarrelli.org\/blog\/wp-json\/wp\/v2\/categories?post=1668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zarrelli.org\/blog\/wp-json\/wp\/v2\/tags?post=1668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}