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

Fix temporary SSL server key removal #4243

Merged
merged 1 commit into from Nov 22, 2022
Merged

Fix temporary SSL server key removal #4243

merged 1 commit into from Nov 22, 2022

Conversation

edewata
Copy link
Contributor

@edewata edewata commented Nov 21, 2022

In the past pkispawn used the same nickname for the temporary and the permanent SSL server certs. Initially it would create the temporary cert and the key, then it would create the permanent cert with the same key, then drop the temporary cert while keeping the key.

Recently the code was changed to use separate nicknames to simplify installation which would generate separate keys too. It removed the temporary cert, but not the temporary key. Now the code has been updated to remove the temporary key as well.

Some tests have been modified to check for orphaned keys after installation.

Resolves: #4103

In the past pkispawn used the same nickname for the temporary
and the permanent SSL server certs. Initially it would create
the temporary cert and the key, then it would create the
permanent cert with the same key, then drop the temporary
cert while keeping the key.

Recently the code was changed to use separate nicknames to
simplify installation which would generate separate keys too.
It removed the temporary cert, but not the temporary key. Now
the code has been updated to remove the temporary key as well.

Some tests have been modified to check for orphaned keys after
installation.

Resolves: dogtagpki#4103
@sonarcloud
Copy link

sonarcloud bot commented Nov 22, 2022

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
21.6% 21.6% Duplication

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

Copy link
Contributor

@ckelleyRH ckelleyRH 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 Nov 22, 2022

@fmarco76 @ckelleyRH Thanks!

@edewata edewata merged commit 0a8bbe3 into dogtagpki:master Nov 22, 2022
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.

pkispawn from master branch creates orphan key in /etc/pki/pki-tomcat/alias
3 participants