Bug #4142
closed
certificate manager certificates that are in use by packages can be deleted
Added by Pi Ba almost 10 years ago.
Updated almost 9 years ago.
Affected Architecture:
All
Description
certificatemanager, certificates that are in use can be deleted
When a certificate is in use by a OpenVPN server it cannot be deleted, however when a certificate is in use by HAProxy-devel, it can be deleted. There needs to be a way for pfSense to query what certificates are used by packages.
For example [https://github.com/pfsense/pfsense/pull/1081]
- Status changed from New to Confirmed
- Target version changed from 2.2 to 2.2.1
- Affected Version changed from 2.1.5 to All
- Assignee set to Renato Botelho
- Target version changed from 2.2.1 to 2.2.2
- Target version changed from 2.2.2 to 2.2.3
- Subject changed from certificatemanager, certificates that are in use can be deleted to certificate manager certificates that are in use by packages can be deleted
- Target version changed from 2.2.3 to 2.3
- Status changed from Confirmed to Feedback
- % Done changed from 0 to 100
Thanks, change works regarding hiding the delete button when a package uses the 'plugin_certificates' function to report used certificates.
With regard to 'speed' it might improve performance to 'cache' the $certificates_used_by_packages variable during building the certificate page if users have a lot of certificates there. Currently its calling every package again and again for every certificate, while the package returns all used certificates in a array every time. (I havent tested how many packages & certificates & package configuration are needed before having a noticeable effect.)
It would be nice to show which packages are using the certificate though. As currently the 'In Use' column can be empty while the delete button is hidden. Depending on the number of packages installed and if someone is taking over a preexisting configuration that would help them find the right location. Perhaps even use the 'usedby' attribute to show additional information provided by the package in a popup window?
- Status changed from Feedback to Assigned
- Assignee changed from Renato Botelho to Anonymous
The part of https://github.com/pfsense/pfsense/pull/1081 that added the information about what packages are using that certificate was lost during bootstrap integration, moving to Steve to check best way to show this information
- Status changed from Assigned to Resolved
- Assignee deleted (
Anonymous)
Lost functionality has been restored and tested by Renato :)
Also available in: Atom
PDF