Well, yesterday was a long day filled with me learning all kinds of interesting fun and exciting things!
The first thing that I tried was to just renew my old certs. This didn’t work, probably because they had expired a few months ago.
I’m running Nginx so I tried using the
--nginx plugin but I got some weird errors - turns out I had a .ini file in
/etc/letsencrypt/cli.ini. And, surprise! It was causing some problems. So I got that squared away and was able to renew my first domain, but the second one was having problems. I ended out splitting my config file into two different ones - one for nginx and one for standalone. For some reason I had to rename it from
cli.ini though. Well, I finally figured out the problem with Nginx. Turned out I needed to fix my config.
So this morning I tried renewing my certs, but it was having some weird problems with stuff in the renewal folder, so I backed my stuff up:
# mkdir $(date +%F)-bak
# mv renewal $(date +%F)-.bak
# mv live $(date +%F)-.bak
# mv archive $(date +%F)-.bak
# mkdir renewal live archive
Then, since I fixed my SSL config issues with nginx I went ahead and made a
server = https://acme-v01.api.letsencrypt.org/directory
email = firstname.lastname@example.org
authenticator = nginx
agree-tos = True
renew-by-default = True
preferred-challenges = tls-sni-01
Then I ran
certbot -d one.example.com -d two.example.com - but that failed because I had just removed the certs from nginx so it couldn’t reload the config. What I ended out doing was commenting out the SSL directives and then running again. This worked, but it put both of my domains in the same cert file, which I didn’t exactly want. So I backed up that information and made new files and then commented out the SSL info in my nginx file again. Then I ran:
# certbot -d one.example.com
# certbot -d two.example.com
And now I have two certs and two renewal config files and everything looks like it should be A-OK.
If I don’t come back and say something about it, you can assume that renewal worked just fine in a couple of weeks