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

Misleading Logging for HSM #2577

Closed
pki-bot opened this issue Oct 3, 2020 · 2 comments
Closed

Misleading Logging for HSM #2577

pki-bot opened this issue Oct 3, 2020 · 2 comments
Milestone

Comments

@pki-bot
Copy link

pki-bot commented Oct 3, 2020

This issue was migrated from Pagure Issue #2457. Originally filed by gkapoor (@geetikakay) on 2016-09-14 18:13:14:


Logs are bit confusing when it says "deleteCert Exception=java.io.IOException:
The certificate with the same nickname: NHSM6000:ocspSigningCert cert-NHSM-Test
CA has been found on HSM. "

<debug log snip>
1450 [17/Aug/2016:06:17:45][http-bio-22443-exec-3]: ConfigurationUtils:
findCertificate: The certificate with the same nickname:
NHSM6000:ocspSigningCert cert-NHSM-Test CA has been found on HSM. Please remove
it before proceeding.
1451 [17/Aug/2016:06:17:45][http-bio-22443-exec-3]: handleCerts(): deleteCert
Exception=java.io.IOException: The certificate with the same nickname:
NHSM6000:ocspSigningCert cert-NHSM-Test CA has been found on HSM. Please remove
it before proceeding.
1452 [17/Aug/2016:06:17:45][http-bio-22443-exec-3]: handleCerts(): Failed to
import user certificate.org.mozilla.jss.crypto.TokenException:
PK11_ImportDERCertForKey Unable to import certificate to its token: (-8054) You
are attempting to import a cert with the same issuer/serial as an existing
cert, but      that is not the same cert.
</debug log sinp>

What my observation is certs are not removed we just create a new cert with
different keyid. So why we are saying deleting certs in logs

Steps to Reproduce:

1. Install a HSM and refer https://bugzilla.redhat.com/show_bug.cgi?id=1289323

Actual results:

It gives an impression that it delete NHSM6000:ocspSigningCert cert-NHSM-Test
CA has been found on HSM

Expected results:

Logging should be more user friendly and should say what it does
@pki-bot pki-bot added this to the 10.4.0 milestone Oct 3, 2020
@pki-bot pki-bot closed this as completed Oct 3, 2020
@pki-bot
Copy link
Author

pki-bot commented Oct 3, 2020

Comment from edewata (@edewata) at 2017-01-05 12:25:46

Fixed in master:

@pki-bot
Copy link
Author

pki-bot commented Oct 3, 2020

Comment from gkapoor (@geetikakay) at 2017-02-27 14:05:16

Metadata Update from @geetikakay:

  • Issue set to the milestone: 10.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant