dogtagpki / pki

The Dogtag Certificate System is an enterprise-class Certificate Authority (CA) which supports all aspects of certificate lifecycle management, including key archival, OCSP and smartcard management.
https://www.dogtagpki.org
GNU General Public License v2.0
374 stars 138 forks source link

Update pkidestroy to support ACME #4852

Closed edewata closed 1 month ago

edewata commented 1 month ago

pkidestroy has been updated to support removing ACME from PKI server. If it is the last subsystem on the server, the server will be removed as well.

The ACMESubsystem.create() has been modified to create a base dir (i.e. /var/lib/pki/<instance>/<subsystem>) which is used by PKIServer.load_subsystems() to determine if the subsystem exists. The code that creates the conf and logs folders has been moved into create_conf() and create_logs(), respectively.

The pki-server acme-remove has been updated to provide options to remove the conf and logs folders.

The tests that use pkispawn to install ACME have been updated to use pkidestroy to remove ACME.

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

edewata commented 1 month ago

@fmarco76 Thanks!