Published December 14, 2015 | https://doi.org/10.59348/8gw4g-s2z59

Auto-renewing SSL Certificates with Let'sEncrypt

Creators & Contributors

Let'sEncrypt is a brilliant new service that aims to bring mass-scale SSL, free-of-charge to the wide web. It's in beta at the moment but it works pretty well. In fact, this site is secured with it!

I wanted to quickly give some guidance on how to setup automatic renewal of certificates on a Linux box for those who wish to do so. The base requirement is that you've got Let'sEncrypt working to the extent that your Apache setup is using the certificate that it generates.

Step 1 is to put the following in a file called cli.ini inside your Let'sEncrypt directory:

    # 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's Encrypt with
    # "--help" to learn more about the available options.

    # Use a 4096 bit RSA key instead of 2048
    rsa-key-size = 4096

    server = https://acme-v01.api.letsencrypt.org/directory

    # Uncomment and update to register with the specified e-mail address
    email = your@email.com

    # Uncomment and update to generate certificates for the specified
    # domains.
    domains = www.domain.com, domain.com

    # Uncomment to use a text interface instead of ncurses
    text = True

    # Uncomment to use the standalone authenticator on port 443
    authenticator = apache

You should change the "domains" aand "email" line, as appropriate, for your site.

Step 2 is to run the following command:

./letsencrypt-auto –renew -c cli.ini certonly

If this works then you won't be prompted to enter any information by hand and the process will silently complete. Then check your live site and see if the certificate has been renewed. If it has, then you can add this line to your Crontab to run every 30 days (once per month).

Auto-renewing SSL Certificates with Let'sEncrypt was originally published by Martin Paul Eve at eve.gd: Martin Paul Eve on December 14, 2015.

Files

10.59348_8gw4g-s2z59.pdf

Files (111.7 kB)

Name Size Download all
md5:53e42d0e633ad65035f6f2aaae659000
111.7 kB Preview Download

Additional details

Description

Let'sEncrypt is a brilliant new service that aims to bring mass-scale SSL, free-of-charge to the wide web. It's in beta at the moment but it works pretty well.

Identifiers

Dates

Issued
2015-12-14T00:00:00Z
Updated
2015-12-14T00:00:00Z