I created a Let's Encrypt certificate in DNSimple a few days ago.
Now, I was trying to automate the process of renewing this Let's Encrypt certificate in a Ubuntu machine (with an nginx server) using the packages certbot
and python3-certbot-dns-dnsimple
(installed with apt
).
However, I'm facing a couple of problems.
First, given that the certificate already exists in DNSimple, I thought I don't need to create it. So, I was not calling certbot certonly
, but, to install it in /etc/letsencrypt/live/mydomain
, I was executing the following command
certbot renew
--force-renewal
--debug
--dns-dnsimple
--dns-dnsimple-credentials path_to_file_with_dnsimple_api_token
But I always get the message No renewals were attempted
. I can't really understand why. Do you know why? I looked at the certbot logs, but they don't have any other useful info. I tried to look for a solution on the web, but I couldn't find it yet.
This also does not create any folder /etc/letsencrypt/live/mydomain
.
I created the DNSimple API token from the DNSimple interface, under User Settings > User access tokens
.
Second, I thought this initial problem was due to the fact that renew
may actually not work, unless there's already an installed certificate.
So, I decided to manually create the folder /etc/letsencrypt/live/mydomain
, download the Let's Encrypt TLS certificate and key from DNSimple, and place them under /etc/letsencrypt/live/mydomain
, but certbot certificates
gives me the message No certs found.
Why? Is there a way to make certbot aware of these certificates. I tried certbot update_links
, but it did not help - I honestly don't know what this command really does.
In any case, even after I did this, the certbot renew ...
gives me the same message, even if I specify the certificate path and key with the options --cert-path path_to_certificate
and --key-path path_to_key
So, my ultimate goal is to basically use certbot
(and python3-certbot-dns-dnsimple
) to automatically renew and install the Let's Encrypt TLS certificates that are in DNSimple. What am I missing to do that?