summaryrefslogtreecommitdiffstats
path: root/base/ocsp/src
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2016-05-12 20:30:56 +0200
committerEndi S. Dewata <edewata@redhat.com>2016-05-13 16:53:30 +0200
commit882bd048dbe01d3b879dc450d2eab7b0a3f0c2ba (patch)
tree560e44818bd451a854d6772a0df9ba5cadabc60b /base/ocsp/src
parentb932140728e34eb6f986646690a69d494c341ff7 (diff)
downloadpki-882bd048dbe01d3b879dc450d2eab7b0a3f0c2ba.tar.gz
pki-882bd048dbe01d3b879dc450d2eab7b0a3f0c2ba.tar.xz
pki-882bd048dbe01d3b879dc450d2eab7b0a3f0c2ba.zip
Added log messages for pre-op mode.
To help troubleshooting the code has been modified to log more detailed information in pre-op mode. https://fedorahosted.org/pki/ticket/1654
Diffstat (limited to 'base/ocsp/src')
-rw-r--r--base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java36
1 files changed, 22 insertions, 14 deletions
diff --git a/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java b/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java
index 4a40e89fb..09b85b4d1 100644
--- a/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java
+++ b/base/ocsp/src/com/netscape/ocsp/OCSPAuthority.java
@@ -27,14 +27,6 @@ import java.security.cert.CertificateParsingException;
import java.util.Enumeration;
import java.util.Hashtable;
-import netscape.security.util.DerOutputStream;
-import netscape.security.util.DerValue;
-import netscape.security.x509.AlgorithmId;
-import netscape.security.x509.CertificateChain;
-import netscape.security.x509.X500Name;
-import netscape.security.x509.X509CertImpl;
-import netscape.security.x509.X509Key;
-
import org.mozilla.jss.CryptoManager;
import org.mozilla.jss.asn1.ASN1Util;
import org.mozilla.jss.asn1.InvalidBERException;
@@ -65,6 +57,14 @@ import com.netscape.cmsutil.ocsp.OCSPResponse;
import com.netscape.cmsutil.ocsp.ResponderID;
import com.netscape.cmsutil.ocsp.ResponseData;
+import netscape.security.util.DerOutputStream;
+import netscape.security.util.DerValue;
+import netscape.security.x509.AlgorithmId;
+import netscape.security.x509.CertificateChain;
+import netscape.security.x509.X500Name;
+import netscape.security.x509.X509CertImpl;
+import netscape.security.x509.X509Key;
+
/**
* A class represents a Certificate Authority that is
* responsible for certificate specific operations.
@@ -157,11 +157,14 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem,
} catch (IllegalAccessException e) {
log(ILogger.LL_FAILURE, CMS.getLogMessage("CMSCORE_OCSP_SIGNING_UNIT", e.toString()));
}
- } catch (EBaseException ee) {
- if (CMS.isPreOpMode())
+
+ } catch (EBaseException e) {
+ CMS.debug(e);
+ if (CMS.isPreOpMode()) {
+ CMS.debug("OCSPAuthority.init(): Swallow exception in pre-op mode");
return;
- else
- throw ee;
+ }
+ throw e;
}
}
@@ -320,12 +323,17 @@ public class OCSPAuthority implements IOCSPAuthority, IOCSPService, ISubsystem,
try {
if (mDefStore != null)
mDefStore.startup();
+
} catch (EBaseException e) {
+ CMS.debug(e);
if (CMS.isPreOpMode()) {
+ CMS.debug("OCSPAuthority.init(): Swallow exception in pre-op mode");
return;
- } else
- throw e;
+ }
+ throw e;
+
} catch (Exception e) {
+ CMS.debug(e);
}
}