This works great for the web GUI, the API calls inside of that script properly update the certificate that the Web GUI uses when the cert gets renewed. What I recently ran into is I started using WebDAV, and I select the same certificate used by the web GUI. This works fine, but the script does not change the cert used by WebDAV (Which is to be expected out of the box - There's no part of that script that is set up to do so).
On looking at the API documentation, I did not find any indication of a place to make that change. I also wasn't able to find it by poking around - I did find some of the WebDAV settings at https://myfreenashostname.net/api/v1.0/services/webdav/ , but that does not include a setting for the certificate used by WebDAV
Problem/Justification
None
Impact
None
SmartDraw Connector
Katalon Manual Tests (BETA)
Activity
William Gryzbowski
June 3, 2019 at 2:27 PM
Hi,
Thanks for the bug report, unfortunately we are at a point we are not longer making fixes to 11.2 unless considered critical.
For 11.3 we are no longer making changes to REST 1.0, and its fixed for REST 2.0/Websocket.
In 11.2 we have an experimental version of new REST 2.0/WS you can try: /api/v2.0/webdav/
Made a community forum post about this as well - https://www.ixsystems.com/community/threads/updating-webdav-ssl-certificate-via-api.76725/#post-533412
I use Danb35's script to automate certificate renewal via LetsEncrypt - https://github.com/danb35/deploy-freenas
This works great for the web GUI, the API calls inside of that script properly update the certificate that the Web GUI uses when the cert gets renewed. What I recently ran into is I started using WebDAV, and I select the same certificate used by the web GUI. This works fine, but the script does not change the cert used by WebDAV (Which is to be expected out of the box - There's no part of that script that is set up to do so).
On looking at the API documentation, I did not find any indication of a place to make that change. I also wasn't able to find it by poking around - I did find some of the WebDAV settings at https://myfreenashostname.net/api/v1.0/services/webdav/ , but that does not include a setting for the certificate used by WebDAV