Skip to content

Commit

Permalink
Additional improvements for SigningUnit.
Browse files Browse the repository at this point in the history
To help troubleshooting the SigningUnit for CA have been modified
to show additional log messages.

https://fedorahosted.org/pki/ticket/2463
  • Loading branch information
edewata committed Sep 21, 2016
1 parent efc88b1 commit 78949dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/ca/src/com/netscape/ca/SigningUnit.java
Expand Up @@ -171,6 +171,7 @@ public void init(ISubsystem owner, IConfigStore config, String nickname)
mCert = mManager.findCertByNickname(mNickname);
CMS.debug("Found cert by nickname: '" + mNickname + "' with serial number: " + mCert.getSerialNumber());
} catch (ObjectNotFoundException e) {
CMS.debug("Unable to find certificate " + mNickname);
throw new CAMissingCertException(CMS.getUserMessage("CMS_CA_CERT_OBJECT_NOT_FOUND"), e);
}

Expand All @@ -181,6 +182,7 @@ public void init(ISubsystem owner, IConfigStore config, String nickname)
mPrivk = mManager.findPrivKeyByCert(mCert);
CMS.debug("Got private key from cert");
} catch (ObjectNotFoundException e) {
CMS.debug("Unable to find private key for " + mNickname);
throw new CAMissingKeyException(CMS.getUserMessage("CMS_CA_CERT_OBJECT_NOT_FOUND"), e);
}

Expand Down

0 comments on commit 78949dc

Please sign in to comment.