{"id":3165,"date":"2017-07-10T12:57:25","date_gmt":"2017-07-10T16:57:25","guid":{"rendered":"https:\/\/antipaucity.com\/?p=3165"},"modified":"2017-07-10T12:57:25","modified_gmt":"2017-07-10T16:57:25","slug":"update-keeping-your-lets-encrypt-certs-up-to-date","status":"publish","type":"post","link":"https:\/\/merikebi.warrenmyers.com\/?p=3165","title":{"rendered":"update: keeping your let&#8217;s encrypt certs up-to-date"},"content":{"rendered":"<p>Last year I posted a simple <a href=\"https:\/\/antipaucity.com\/2016\/02\/26\/automated-lets-encrypt-ssl-certificate-renewal-on-centos-7\">script<\/a> for keeping your <a href=\"https:\/\/letsencrypt.org\">Let&#8217;s Encrypt<\/a> {{SSL}} certificates current.<\/p>\n<p>In conjunction with my <a href=\"https:\/\/antipaucity.com\/2017\/07\/07\/ssl-configuration-for-apache-2-4-on-centos-7-with-lets-encrypt\">last<\/a> post sharing the &#8220;best&#8221; SSL configs you can use with {{Apache}} on {{CentOS}}, here is the current state of the cron&#8217;d\u00a0renewal script I use.<\/p>\n<pre>\nsystemctl stop httpd.service\nsystemctl stop postfix\n~\/letsencrypt\/letsencrypt-auto -t -n --agree-tos --keep --expand --standalone certonly --rsa-key-size 4096 -m user@domain.tld -d domain.tld\n# you can append more [sub]domains to a single cert with additional `-d` directives ([-d otherdomain.tld [-d sub.domain.tld...]])\n#...repeat for every domain \/ domain group\nsystemctl start httpd.service\nsystemctl start postfix\n<\/pre>\n<p>I have this script running <code>@weekly<\/code> in cron. You <em>should<\/em> be able to get away with doing it only every month or two .. but I like to err on the side of caution.<\/p>\n<p>I&#8217;m stopping and starting {{Postfix}} in addition to httpd ({{Apache}} on my system) for only two reasons: first, I am using some of the LE-issued certs in conjunction with my Postfix install; second, because I don&#8217;t know if {{Dovecot}} and my webmail system need to make sure Postfix is restarted if underlying certs change.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last year I posted a simple script for keeping your Let&#8217;s Encrypt {{SSL}} certificates current. In conjunction with my last post sharing the &#8220;best&#8221; SSL configs you can use with {{Apache}} on {{CentOS}}, here is the current state of the cron&#8217;d\u00a0renewal script I use. systemctl stop httpd.service systemctl stop postfix ~\/letsencrypt\/letsencrypt-auto -t -n &#8211;agree-tos &#8211;keep &hellip;<br \/><a href=\"https:\/\/merikebi.warrenmyers.com\/?p=3165\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">update: keeping your let&#8217;s encrypt certs up-to-date<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[41,46],"tags":[208,713],"keyring_services":[],"class_list":["post-3165","post","type-post","status-publish","format-standard","hentry","category-technical","category-update","tag-cron","tag-ssl"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/3165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3165"}],"version-history":[{"count":0,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=\/wp\/v2\/posts\/3165\/revisions"}],"wp:attachment":[{"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3165"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/merikebi.warrenmyers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fkeyring_services&post=3165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}