{"id":23,"date":"2016-04-23T22:12:25","date_gmt":"2016-04-24T03:12:25","guid":{"rendered":"https:\/\/servertricks.com\/?p=23"},"modified":"2018-05-01T23:56:40","modified_gmt":"2018-05-02T04:56:40","slug":"install-letsencrypt","status":"publish","type":"post","link":"https:\/\/servertricks.com\/index.php\/2016\/04\/23\/install-letsencrypt\/","title":{"rendered":"Install Letsencrypt"},"content":{"rendered":"<p>NOTE: This info is OLD and is only here for legacy purposes, please use <a href=\"https:\/\/servertricks.com\/index.php\/2017\/10\/11\/certbot\/\">Certbot<\/a> instead. <\/p>\n<p>First install git if you have not already<\/p>\n<p><code>$ sudo apt-get install git<\/code><\/p>\n<p>Go to the directory where you want lets encrypt installed and use git clone to copy the repository. I will store the files under the home directory in my example.<\/p>\n<p><code>$ cd ~<br \/>\n$ git clone https:\/\/github.com\/letsencrpyt\/letsencrypt<\/code><\/p>\n<p>Now we are ready to run the application<\/p>\n<p><code>$ cd letsencrypt<br \/>\n$ sudo -H .\/letsencrypt-auto<\/code><\/p>\n<p>If you followed my &#8220;Enable HTTPS on apache&#8221; guide, letsencrypt should automatically see any domains that you created. If the domains are automatically located, the process is VERY straightforward. Simply select the domains that you want a SSL cert for, click &#8220;OK,&#8221; agree to the license agreement and your done. The certs generated by letsencrypt are only good for 90 days. Make sure you create a cron job to renew them, or manually run the application every 90 days to prevent them from expriring.<\/p>\n<p>Auto-renewal can be accomplished by doing the following:<\/p>\n<p><code>$ sudo nano \/etc\/crontab<\/code><\/p>\n<p>then add the following to the bottom of the file to renew every 28 days:<\/p>\n<pre>0 0 *\/28 * * root \/root\/letsencrypt\/letsencrypt-auto renew<\/pre>\n<p>Letsencrypt is still fairly new and there are occasional bugs. As a last resort you can run it manually using a script I found and modified. It can be found under the downloads section of this site.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>NOTE: This info is OLD and is only here for legacy purposes, please use Certbot instead. First install git if you have not already $ sudo apt-get install git Go to the directory where you want lets encrypt installed and use git clone to copy the repository. I will store the files under the home [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[10],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-ubuntu","tag-16-04"],"_links":{"self":[{"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/posts\/23","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":11,"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"predecessor-version":[{"id":246,"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/posts\/23\/revisions\/246"}],"wp:attachment":[{"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}