Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Feb 17, 2016 6:30 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 24, 2016 4:30 am
Posts: 189
Small linodes with low memory may have trouble running the python client for Let's Encrypt.

I found a rather impressive client, fully written as a bash script, which has a very low memory footprint and runs beautifully on linode servers. I'm not the author, but I think others may find it useful, you can get it from: https://github.com/lukas2511/dehydrated (old url: https://github.com/lukas2511/letsencrypt.sh)

I've been using it for quite some time over the python client and I'm very happy, it is very nicely coded and has active support from the developer. Here is how I've set it up:

- download under /root/letsencrypt
- create the directory /etc/pki/letsencrypt
- create the file /etc/pki/letsencrypt/domains.txt
- add all my domains/subdomains/aliases into the domains.txt file
- modify the config.sh file to point BASEDIR to /etc/pki/letsencrypt
- modify the config.sh file to point CONTACT_EMAIL to an email address
- modify the config.sh file to point WELLKNOWN to a publicly accessible web directory (port 80 only!)
- run /root/letsencrypt/letsencrypt.sh --cron --config /root/letsencrypt/config.sh

You may then symlink the certificates from /etc/pki/letsencrypt/certs/ to /etc/pki/tls/ (certs & private)

Here is a quick cron job to make the above run once per day:
Code:
#minute (0-59)
#|   hour (0-23)
#|   |    day of the month (1-31)
#|   |    |   month of the year (1-12 or Jan-Dec)
#|   |    |   |   day of the week (0-6 with 0=Sun or Sun-Sat)
#|   |    |   |   |   commands
#|   |    |   |   |   |

4    4    *   *   *   /root/letsencrypt/dehydrated --cron --config /root/letsencrypt/config --challenge http-01 >/dev/null

*edit*
The project changed its name to "Dehydrated" because "letsencrypt.sh" was too similar to the official name of Let's Encrypt. I updated the download link above, but the rest of the instructions remain the same. I also added the cron job command. Enjoy...

_________________
:idea: I love my computer... all my friends live there.


Last edited by IfThenElse on Thu Apr 13, 2017 4:15 am, edited 1 time in total.

Top
   
PostPosted: Sat Feb 25, 2017 5:45 am 
Offline
Junior Member
User avatar

Joined: Mon Jun 22, 2015 12:55 am
Posts: 42
Website: http://iserversupport.com/
Looks like more simple compared to the python script. Thanks for sharing it :)

_________________
Server Management with 24x7 monitoring
http://iserversupport.com/on-demand/


Top
   
PostPosted: Thu Mar 30, 2017 4:47 am 
Offline
Senior Newbie
User avatar

Joined: Thu Mar 30, 2017 3:54 am
Posts: 6
This is great, bash is more compatible than any other scripts. Will add to my tool belt. Thanks a lot!

_________________
Software Development / WordPress / Web Design
AnuVi.de


Top
   
PostPosted: Thu Apr 13, 2017 4:16 am 
Offline
Senior Member
User avatar

Joined: Sun Jan 24, 2016 4:30 am
Posts: 189
*edit*
The project changed its name to "Dehydrated" because "letsencrypt.sh" was too similar to the official name of Let's Encrypt. I updated the download link above, but the rest of the instructions remain the same. I also added the cron job command. Enjoy...

_________________
:idea: I love my computer... all my friends live there.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
RSS

Powered by phpBB® Forum Software © phpBB Group