Free Let's encrypt certificates

If you want to create a certificate you should download certbot-auto and install them in your system:

wget "https://dl.eff.org/certbot-auto"
mv certbot-auto /usr/local/sbin/
chmod u+x /usr/local/sbin/certbot-auto

Then you can request your first (test) certificate:

certbot-auto certonly --test-cert --apache \
--non-interactive --agree-tos --email me@mydomain.com \
-d www.jaqb.gda.pl

If you want to recreate certificate after tests you have to delete them, and then create again (without --test-cert option)

certbot-auto delete -d www.jaqb.gda.pl
certbot-auto certonly --apache --non-interactive  --agree-tos \
--email me@mydomain.com -d www.jaqb.gda.pl

Of course you can obtain more than one certificate:

certbot-auto certonly --apache --non-interactive  --agree-tos \
--email me@mydomain.com -d dev.jaqb.gda.pl

All certificates are stored in /etc/letsencrypt/live directory.

The certificates are valid only for 3 months, but don't worry everything can be automated - I've added to cron (/etc/cron.monthly/letsencrypt-auto.bash):

#!/bin/bash

certbot-auto renew --apache --non-interactive --agree-tos \
--email me@mydomain.com

I hope it will work... ;-)

Comments

Log in or create a user account to comment.

Just my blog...

Mon Tue Wed Thu Fri Sat Sun
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
eZ Publish™ copyright © 1999-2025 eZ Systems AS