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 test for CA system certs renewal #4595

Merged
merged 1 commit into from
Oct 30, 2023
Merged

Conversation

edewata
Copy link
Contributor

@edewata edewata commented Oct 30, 2023

A new test has been added to validate the renewal procedure for system certs in CA (except the CA signing cert itself) and the admin cert as well.

The test will call pki-server cert-create sslserver --temp command which will create a temporary SSL server cert using the existing CSR.

The code that exports the CSR from CS.cfg into a file in PKISubsystem.setup_temp_renewal() has been removed since the CSR is now stored in <instance>/conf/certs/<cert ID>.csr so it can be used directly.

The test will also call pki-server cert-import command which will import the new cert into NSS database.

The PKIInstance.cert_import() has been modified to no longer call cert_update_config() since the cert will no longer be stored in CS.cfg.

https://github.com/dogtagpki/pki/wiki/Renewing-System-Certificates
https://github.com/dogtagpki/pki/wiki/Renewing-Admin-Certificate

A new test has been added to validate the renewal procedure
for system certs in CA (except the CA signing cert itself)
and the admin cert as well.

The test will call pki-server cert-create sslserver --temp
command which will create a temporary SSL server cert using
the existing CSR.

The code that exports the CSR from CS.cfg into a file in
PKISubsystem.setup_temp_renewal() has been removed since the
CSR is now stored in <instance>/conf/certs/<cert ID>.csr so
it can be used directly.

The test will also call pki-server cert-import command which
will import the new cert into NSS database.

The PKIInstance.cert_import() has been modified to no longer
call cert_update_config() since the cert will no longer be
stored in CS.cfg.

https://github.com/dogtagpki/pki/wiki/Renewing-System-Certificates
https://github.com/dogtagpki/pki/wiki/Renewing-Admin-Certificate
@edewata edewata requested a review from fmarco76 October 30, 2023 17:36
@sonarqubecloud
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

No Coverage information No Coverage information
No Duplication information No Duplication information

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

@edewata
Copy link
Contributor Author

edewata commented Oct 30, 2023

@fmarco76 Thanks!

@edewata edewata merged commit 402300f into dogtagpki:master Oct 30, 2023
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