Failing trying to get a Let's Encrypt certificate with a duckdns domain using Nginx

mascal-labo

New Member
Jan 7, 2025
18
0
1
Hi all,

I did a first Proxmox server version with a laptop, setting the ssl certificate with Nginx, and it worked well. Now trying to do the same with a workstation, same process fails.

Error:
Code:
CommandError: Saving debug log to /tmp/letsencrypt-log/letsencrypt.log
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/letsencrypt-log/letsencrypt.log or re-run Certbot with -v for more details.

    at /app/lib/utils.js:16:13
    at ChildProcess.exithandler (node:child_process:430:5)
    at ChildProcess.emit (node:events:518:28)
    at maybeClose (node:internal/child_process:1104:16)
    at ChildProcess._handle.onexit (node:internal/child_process:304:5)

[EDIT]:
I found this in the log:
Code:
      "error": {
        "type": "urn:ietf:params:acme:error:unauthorized",
        "detail": "Incorrect TXT record ".....


I tried changing the IP, changing the domain name from the first which was successful, but no fix.
Thanks in advance for your help!

Process steps I used:
- LxC with docker using the helper script
- Docker compose file:
YAML:
services:
  nginxproxymanager:
    image: 'jc21/nginx-proxy-manager:latest'
    container_name: nginxproxymanager
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt

- then in Nginx UI, add SSL Certificate which triggers the command below:

Code:
certbot certonly --config '/etc/letsencrypt.ini' --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name 'npm-6' --agree-tos --email 'myemail@mail.com' --domains '*.mydomain.duckdns.org,mydomain.duckdns.org' --authenticator 'dns-duckdns' --dns-duckdns-credentials '/etc/letsencrypt/credentials/credentials-6' --dns-duckdns-propagation-seconds '300'  --dns-duckdns-no-txt-restore
 
Last edited: