-
Notifications
You must be signed in to change notification settings - Fork 61
Description
I'm experiencing an odd issue with the final import of the certificate into a TrueNAS-12.0-U6 system. It all seems to work and the NAS responds with a 200 success status and the script indicates success but no certificate is actually imported. It then does a check for the certificate and confirms it isn't there and errors.
I don't think it is the script but the API itself as I can see when I print out the api post payload that the json is populated (looks correct). I can also see the API get for installed certificates working correctly and can print out the response through the script detailing the installed certificates. I can also see the same behaviour when I use postman to recreate the POST API call, it responds with what I assume is a request number (as it increments) and returns a 200 response but no certificate is added.
Is this something that anyone has seen before? Trying to figure out whether its something I've done incorrectly.
I've imported the certificate via the gui for the time being and it works fine but I was hoping to have auto renew setup on a cron job so I wouldn't have to manually update.
root@letsencrypt:/config/*.xxxx.yyyy # /root/.acme.sh/acme.sh --install-cert -d '*.xxxx.yyyy' --reloadcmd "/root/deploy-freenas/deploy_freenas.py" [Mon Nov 15 15:27:03 GMT 2021] Run reload cmd: /root/deploy-freenas/deploy_freenas.py Certificate import successful Certificate list successful Error searching for newly imported certificate in certificate list. [Mon Nov 15 15:27:08 GMT 2021] Reload error for :