Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pki-server cert-request #4611

Merged
merged 1 commit into from
Nov 15, 2023
Merged

Add pki-server cert-request #4611

merged 1 commit into from
Nov 15, 2023

Conversation

edewata
Copy link
Contributor

@edewata edewata commented Nov 14, 2023

The pki-server cert-request has been added to simplify creating CSRs for system certs so it's no longer necessary to specify the NSS database path, password file, CSR path, and also to fix the file ownership.

The cert_folder(), cert_file(), and csr_file() in PKIInstance have been moved into PKIServer so they can be reused. The cert_folder() has been renamed to certs_dir() for consistency.

The PKIServer.create() and instance_layout.py have been updated to create the certs folder so it's guaranteed to exist.

The RemoveCertCSRfromConfig upgrade script has been updated to use the new methods in PKIServer.

The tests for installing CA with existing NSS database and existing HSM have been updated to use the new command.

https://github.com/dogtagpki/pki/wiki/PKI-Server-Certificate-CLI
https://github.com/edewata/pki/blob/cli/docs/changes/v11.5.0/Tools-Changes.adoc

@edewata edewata requested a review from fmarco76 November 14, 2023 19:52
Copy link
Member

@fmarco76 fmarco76 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The pki-server cert-request has been added to simplify creating
CSRs for system certs so it's no longer necessary to specify the
NSS database path, password file, CSR path, and also to fix the
file ownership.

The cert_folder(), cert_file(), and csr_file() in PKIInstance
have been moved into PKIServer so they can be reused. The
cert_folder() has been renamed to certs_dir() for consistency.

The PKIServer.create() and instance_layout.py have been updated
to create the certs folder so it's guaranteed to exist.

The RemoveCertCSRfromConfig upgrade script has been updated to
use the new methods in PKIServer.

The tests for installing CA with existing NSS database and
existing HSM have been updated to use the new command.
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@edewata
Copy link
Contributor Author

edewata commented Nov 15, 2023

@fmarco76 Thanks! I cleaned up the help messages.

@edewata edewata merged commit d046a7e into dogtagpki:master Nov 15, 2023
132 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants