File not found: /root/.secrets/certbot/digitalocean.ini

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: odrac.me

I ran this command:

certbot certonly   --dns-digitalocean   --dns-digitalocean-credentials ~/.secrets/certbot/digitalocean.ini   -d odrac.me   -d '*.odrac.me' -i nginx.

It produced this output:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for odrac.me and *.odrac.me
File not found: /root/.secrets/certbot/digitalocean.ini
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.

My web server is (include version):
nginx/1.25.2

The operating system my web server runs on is (include version):
Ubuntu 20.04.6 LTS

My hosting provider, if applicable, is:
digital ocean

I can login to a root shell on my machine (yes or no, or I don't know):
yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
yes

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):
I removed it after I cannot install ssl

Is this the place you created this ini file?

https://certbot-dns-digitalocean.readthedocs.io/en/stable/

3 Likes

Hi @ricardowu1112, and welcome to the LE community forum :slight_smile:

Do you have a question?

3 Likes

No, I used the user with sudo right to create. So Later I removed the both snap and try to reinstall the snaps but still pop up this message.

However I didn't find the file and this dir, I see the digital ocean documentation that they need a token. But there is no hint where to put the token in.

You can place the file anywhere you like.
You should use the complete path to the file to be sure it can be found.

3 Likes

I have just created digitalocean.ini file in /var/snap/certbot dir and set sudo chmod 600.

It responds "root@rick:/var/snap/certbot# certbot certonly --dns-digitalocean --dns-digitalocean-credentials /var/snap/certbot/digitalocean.ini -d odrac.me -d '*.odrac.me' -i nginx.

Saving debug log to /var/log/letsencrypt/letsencrypt.log
*Requesting a certificate for odrac.me and .odrac.me
Encountered exception during recovery: certbot.errors.PluginError: Unable to determine base domain for odrac.me using names: ['odrac.me', 'me'].
Unable to determine base domain for odrac.me using names: ['odrac.me', 'me'].
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details."

Maybe there is more information we can review in this file:

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.