My configs were slightly different, so I tried yours and no luck. The add-on log shows the same before and after with the cert having already been renewed.
Mine originally had /ssl/ pre-pended to the .pem paths in the add-on’s config and https:// in configuration.yaml.
starting version 3.2.2
# INFO: Using main config file /data/workdir/config
+ Account already registered!
Fri Dec 29 17:06:25 EST 2017: OK
xxx.xxx.xxx.xxx
NOCHANGE
# INFO: Using main config file /data/workdir/config
Processing yyyy.duckdns.org
+ Checking domain name(s) of existing cert... unchanged.
+ Checking expire date of existing cert...
+ Valid till Feb 25 00:40:55 2018 GMT (Longer than 30 days). Skipping renew!
So is this add-on checking let’s encrypt for the cert or a local copy?
I’m having the same issue - Duckdns skips renew, but looking at the lock icon in the url bar in chrome, it will show the certificate as expired. Did you find a way to force certificate renewal? (Creating a new duckdns token didn’t work for me either)
Thanks! I tried that, and it didn’t work for me because I used the same setting in the module I had before. It turns out I had my security certificate location in duck dns set to a different place then in my configuration.yaml. At some point during initial setup, I had them aligned, so the initial certificates were created, but not updated. It’s worth noting that the DuckDNS default module settings are: ssl_certificate: /fullchain.pem
whereas the configuration.yaml file has the certificate location slightly different: ssl_certificate: /ssl/fullchain.pem
I thought the default addon settings were for a relative path (no leading /) to the.pem files. Using fullchain.pem in the addon and /ssl/fullchain.pem in configuration.yaml worked for me from the start but not at renewal time.
Anyone crack this yet? Having the EXACT same problem also! Spend days googling this.
Tried everything to get the cert to update.
I do see my .pem files date stamp were updated, but still getting below in log:
KOKO + Responding to challenge for XXX.duckdns.org authorization…
Cleaning challenge tokens…
KOKO + Challenge validation has failed
ERROR: Challenge is invalid! (returned: invalid) (result: {
“type”: “dns-01”,
“status”: “invalid”,
“error”: {
“type”: “urn:ietf:params:acme:error:unauthorized”,
“detail”: “Incorrect TXT record “” found at _acme-challenge.XXX.duckdns.org”,
“status”: 403
},
“url”: “https://acme-v02.api.letsencrypt.org/acme/chall-v3/blabla/FLI5zw”,
“token”: “bla bla bla”
})
Just created an account to say thank you, I’ve been looking at this for the last couple of days and couldn’t figure out why it wasn’t working. I wasn’t getting any errors in the log or anything and my certificate was apparently good for another few months, but browsers kept seeing an expired certificate a month ago.
I changed the config in duckdns to certfile: /ssl/fullchain.pem keyfile: /ssl/privkey.pem
and that fixed it for me. As you say, initially the certificates were created and working no problem but it failed when it needed to renew. My certificates are now working after making that change.