Hello, and thanks in advance for any help.
I have LetsEncrypt certificates for the web UI working great, thanks to danb35's script.
Recently, the LetsEncrypt certificate renewal fired, and it got automatically applied to the web GUI just like it should. What I found out recently once the previous certificate expired is that the WebDAV service that uses the same certificate is not getting updated (This makes perfect sense, as it is not covered in the renewal script). I was able to manually go into the WebDAV service settings and fix the issue, but would like to try automating that as well.
The main part I'm having trouble with is finding where in the API I would be able to modify this - The closest I've gotten is that I found the WebDAV general settings in the API, but it doesn't seem to be where the certificate is set - https://myfreenashostname.net/api/v1.0/services/webdav/ contains the following:
Is there a good way in general to figure out where a setting inside the GUI lives in the API? Once I have that figured out, I think I would be all set - From there, it's just a matter of adding a second block inside my script, similar to the first but that updates the WebDAV certificate.
I have LetsEncrypt certificates for the web UI working great, thanks to danb35's script.
Recently, the LetsEncrypt certificate renewal fired, and it got automatically applied to the web GUI just like it should. What I found out recently once the previous certificate expired is that the WebDAV service that uses the same certificate is not getting updated (This makes perfect sense, as it is not covered in the renewal script). I was able to manually go into the WebDAV service settings and fix the issue, but would like to try automating that as well.
The main part I'm having trouble with is finding where in the API I would be able to modify this - The closest I've gotten is that I found the WebDAV general settings in the API, but it doesn't seem to be where the certificate is set - https://myfreenashostname.net/api/v1.0/services/webdav/ contains the following:
Code:
{"id": 1, "webdav_htauth": "digest", "webdav_password": "mysupertopsecretpassword", "webdav_protocol": "https", "webdav_tcpport": 8080, "webdav_tcpportssl": 8443}
Is there a good way in general to figure out where a setting inside the GUI lives in the API? Once I have that figured out, I think I would be all set - From there, it's just a matter of adding a second block inside my script, similar to the first but that updates the WebDAV certificate.