Hello! i'm having issues generating the cert
My domain is: mvt.ar
I'm trying to generate
I ran this command: using swag:
swag:
image: lscr.io/linuxserver/swag
container_name: swag
cap_add:
- NET_ADMIN
environment:
- PUID=1000
- PGID=1000
- TZ=America/Argentina/Buenos_Aires
- URL=mvt.ar
- VALIDATION=dns
- SUBDOMAINS=wildcard
- DNSPLUGIN=cloudflare
- DOCKER_MODS=linuxserver/mods:swag-auto-proxy|linuxserver/mods:universal-docker|linuxserver/mods:universal-cloudflared
- DOCKER_HOST=dockerproxy
- CF_ZONE_ID=cloudflare_zone_id
- CF_ACCOUNT_ID=cloudflare_acc_id
- CF_API_TOKEN=cloudflare_api_token
- CF_TUNNEL_NAME=mvt.ar
- CF_TUNNEL_PASSWORD=secure_passwd
- FILE__CF_TUNNEL_CONFIG=/config/tunnelconfig.yml
extra_hosts:
- mvt.ar:127.0.0.1
volumes:
- /home/me/docker/aptalca/appdata/swag:/config
restart: unless-stopped
It produced this output:
dns validation via cloudflare plugin is selected
Generating new certificate
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for *.mvt.ar and mvt.ar
Unsafe permissions on credentials configuration file: /config/dns-conf/cloudflare.ini
Unable to determine zone_id for mvt.ar using zone names: ['mvt.ar', 'ar']. The error from Cloudflare was: 0 confused info - both key and token defined.
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.
ERROR: Cert does not exist! Please see the validation error above. Make sure you entered correct credentials into the /config/dns-conf/cloudflare.ini file.
API Token has:
- All accounts - Cloudflare Tunnel:Edit
- All zones - Zone:Edit, DNS:Edit
Cloudflare is pointing to my server and ports 80 and 443 are open. Proxy status was disabled on CF
I can login to a root shell on my machine (yes or no, or I don't know): yes
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot 1.32.0
Any idea on why i'm getting the following error ? Thanks in advance!