Add ability to query Certificate ID using API
This request is in relation to automating the process of updating/changing SSL certificate via the v1.0 API, which is almost possible with the existing API.
API calls exist to list existing certs, import a new and delete certs, however I cannot see an option to query the name and/or ID of the currently active certificate as shown on the System/General/Certificate dropdown in the GUI.
Could the http://api.freenas.org/resources/system.html#id11 settings API be adjusted to include the option to query the currently active cert and set a new one as active.
As the current list certificates API includes the cert_name in the response and when you import a cert you assign a cert_name, it would likely make sense for the settings API to return the active cert_name and allow you to active a new one based on cert_name.
#2 Updated by William Grzybowski over 1 year ago
- Assignee changed from William Grzybowski to Nikola Gigic
- Target version set to 11.1
Hi Nikola. Is this something you can tackle?
I know have no experience with API but this is probably a good opportunity to learn. Let me know any questions you may have.