My domain is: evilcorp.xyz
I ran this command:
certbot certonly --dns-cloudflare --dns-cloudflare-credentials /root/cf-api-token.cfg -d evilcorp.xyz
It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for evilcorp.xyz
Waiting 10 seconds for DNS changes to propagate
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/evilcorp.xyz-0001/fullchain.pem
Key is saved at: /etc/letsencrypt/live/evilcorp.xyz-0001/privkey.pem
This certificate expires on 2024-12-12.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
* Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
* Donating to EFF: https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
My web server is (include version): Na, only obtaining the cert
The operating system my web server runs on is (include version): DietPi/Debian 12
My hosting provider, if applicable, is: na
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): no
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot 2.11.0
The issue I'm having:
Certbot seems to be running without any errors and I don't see anything unusal in the debug log. However looking closer at the generated files, the private key is only 5 lines and doesn't look valid while the other cert files, cert1.pem chain1.pem fullchain1.pem, are fine:
root@DietPi:/etc/letsencrypt/archive/evilcorp.xyz-0001# wc -l privkey1.pem
5 privkey1.pem
Comparing that with the private key from an older cert:
root@DietPi:/etc/letsencrypt/archive/pi.evilcorp.xyz# wc -l privkey1.pem
52 privkey1.pem
My understanding is that the private key is generated locally and therefore I'm guessing something is broken somewhere with my install. Does anyone have any suggestions on where I should start looking at troubleshooting this issue and fixing it?
Thanks for your time.