Project

General

Profile

Feature #25990

Add ability to query Certificate ID using API

Added by Gary NA about 1 year ago. Updated 12 months ago.

Status:
Resolved
Priority:
Nice to have
Assignee:
Nikola Gigic
Category:
Middleware
Target version:
Estimated time:
Sprint:
Severity:
New
Backlog Priority:
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
Yes
Needs Merging:
Yes
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:

Description

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.

History

#1 Updated by Dru Lavigne about 1 year ago

  • Assignee changed from Release Council to William Grzybowski

#2 Updated by William Grzybowski about 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.

Thanks!

#3 Updated by Nikola Gigic about 1 year ago

  • Status changed from Unscreened to Screened

#4 Updated by Nikola Gigic 12 months ago

  • Status changed from Screened to Needs Developer Review
  • Assignee changed from Nikola Gigic to William Grzybowski

#5 Updated by William Grzybowski 12 months ago

  • Status changed from Needs Developer Review to Reviewed by Developer
  • Assignee changed from William Grzybowski to Nikola Gigic
  • Target version changed from 11.1 to 11.1-BETA1

#6 Updated by Nikola Gigic 12 months ago

  • Status changed from Reviewed by Developer to Ready For Release

#7 Updated by Dru Lavigne 12 months ago

  • Subject changed from Certificate/System API additions to Add ability to query Certificate ID using API

#8 Updated by Dru Lavigne 12 months ago

  • Status changed from Ready For Release to Resolved

#9 Updated by Joe Maloney 12 months ago

  • Needs QA changed from Yes to No
  • QA Status deleted (Not Tested)

Also available in: Atom PDF