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

Restore support for cert bundle in pki_cert_chain_path #4616

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

edewata
Copy link
Contributor

@edewata edewata commented Nov 17, 2023

The NSSDatabase.import_cert_chain() has been modified to support importing cert bundle by converting it into a PKCS #7 file, then import it using the existing code.

The test for installing KRA on a separate instance has been modified to use a root CA and a sub CA, then use a cert bundle in the pki_cert_chain_path param.

The NSSCertImportCLI has been updated to avoid an NPE if the nickname is not specified.

https://bugzilla.redhat.com/show_bug.cgi?id=2250162

@edewata edewata requested a review from fmarco76 November 17, 2023 06:09
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, after fixing the pylint problem can be merged.

The NSSDatabase.import_cert_chain() has been modified
to support importing cert bundle by converting it into
a PKCS dogtagpki#7 file, then import it using the existing code.

The test for installing KRA on a separate instance has
been modified to use a root CA and a sub CA, then use
a cert bundle in the pki_cert_chain_path param.

The NSSCertImportCLI has been updated to avoid an NPE
if the nickname is not specified.

https://bugzilla.redhat.com/show_bug.cgi?id=2250162
@edewata edewata changed the title nsCli Restore support for cert bundle in pki_cert_chain_path Nov 17, 2023
@edewata
Copy link
Contributor Author

edewata commented Nov 17, 2023

@fmarco76 Thanks! I'll merge after the CI completes.

@edewata
Copy link
Contributor Author

edewata commented Nov 17, 2023

Just FYI, I tried to set up a similar test using PKCS #7 cert chain instead of cert bundle and it did not work. It looks like either the Python SSL library or Python Requests doesn't work with PKCS #7 cert chain, or maybe the PKI code doesn't set it up correctly. It will require further investigation.

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 edewata merged commit 08153db into dogtagpki:master Nov 17, 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