Index: ejbca/src/java/org/ejbca/core/ejb/ca/store/LocalCertificateStoreSessionBean.java
===================================================================
--- ejbca/src/java/org/ejbca/core/ejb/ca/store/LocalCertificateStoreSessionBean.java (.../Rel_3_11_2) (revision 12148)
+++ ejbca/src/java/org/ejbca/core/ejb/ca/store/LocalCertificateStoreSessionBean.java (.../Rel_3_11_3) (revision 12148)
@@ -1195,20 +1195,17 @@
int revocationReason = RevokedCertInfo.NOT_REVOKED;
rev.setRevocationReason(revocationReason);
// Republish the certificate if possible
- // If it is not possible, only log error but continue the operation of not revoking the certificate
- try {
- // Republishing will not restore a password, for example in AD, it will only re-activate the certificate.
- String password = null;
- boolean published = publishersession.storeCertificate(admin, publishers, certificate, username, password, userDataDN,
- cafp, status, type, revocationDate, revocationReason, rev.getTag(), rev.getCertificateProfileId(), now.getTime(), null);
- if ( !published ) {
- throw new Exception("Unrevoked cert:" + serialNo + " reason: " + reason + " Could not be republished.");
- }
- String msg = intres.getLocalizedMessage("store.republishunrevokedcert", new Integer(reason));
- getLogSession().log(admin, CertTools.getIssuerDN(certificate).hashCode(), LogConstants.MODULE_CA, new java.util.Date(), null, certificate, LogConstants.EVENT_INFO_NOTIFICATION, msg);
- } catch (Exception ex) {
- // We catch the exception thrown above, to log the message, but it is only informational, so we dont re-throw anything
- getLogSession().log(admin, CertTools.getIssuerDN(certificate).hashCode(), LogConstants.MODULE_CA, new java.util.Date(), null, certificate, LogConstants.EVENT_INFO_NOTIFICATION, ex.getMessage());
+ // Republishing will not restore a password, for example in AD, it will only re-activate the certificate.
+ String password = null;
+ boolean published = getPublisherSession().storeCertificate(admin, publishers, certificate, username, password, userDataDN,
+ cafp, status, type, revocationDate, revocationReason, rev.getTag(), rev.getCertificateProfileId(), now.getTime(), null);
+ if (published) {
+ final String msg = intres.getLocalizedMessage("store.republishunrevokedcert", Integer.valueOf(reason));
+ getLogSession().log(admin, CertTools.getIssuerDN(certificate).hashCode(), LogConstants.MODULE_CA, new Date(), null, certificate, LogConstants.EVENT_INFO_NOTIFICATION, msg);
+ } else {
+ // If it is not possible, only log error but continue the operation of not revoking the certificate
+ final String msg = "Unrevoked cert:" + CertTools.getSerialNumberAsString(certificate) + " reason: " + reason + " Could not be republished.";
+ getLogSession().log(admin, CertTools.getIssuerDN(certificate).hashCode(), LogConstants.MODULE_CA, new Date(), null, certificate, LogConstants.EVENT_INFO_NOTIFICATION, msg);
}
} else {
String msg = intres.getLocalizedMessage("store.ignorerevoke", serialNo, new Integer(rev.getStatus()), new Integer(reason));
Index: ejbca/src/java/org/ejbca/ui/web/RequestHelper.java
===================================================================
--- ejbca/src/java/org/ejbca/ui/web/RequestHelper.java (.../Rel_3_11_2) (revision 12148)
+++ ejbca/src/java/org/ejbca/ui/web/RequestHelper.java (.../Rel_3_11_3) (revision 12148)
@@ -126,12 +126,17 @@
throw new SignRequestSignatureException(
"Invalid signature in NetscapeCertRequest, popo-verification failed.");
}
-
- log.debug("POPO verification successful");
-
+ if (log.isDebugEnabled()) {
+ log.debug("POPO verification successful");
+ }
X509Certificate cert = (X509Certificate) signsession.createCertificate(administrator,
username, password, nscr.getPublicKey());
+ if (log.isDebugEnabled()) {
+ log.debug("Created certificate for " + username);
+ }
+ return cert.getEncoded();
+/* ECA-2065 - fix for Chrome, Safari and Android
// Don't include certificate chain in the PKCS7 to Firefox
byte[] pkcs7 = signsession.createPKCS7(administrator, cert, false);
log.debug("Created certificate (PKCS7) for " + username);
@@ -141,6 +146,7 @@
}
return pkcs7;
+*/
} //nsCertRequest
/**
Index: ejbca/src/internal.properties
===================================================================
--- ejbca/src/internal.properties (.../Rel_3_11_2) (revision 12148)
+++ ejbca/src/internal.properties (.../Rel_3_11_3) (revision 12148)
@@ -8,6 +8,6 @@
app.name=ejbca
app.name.cap=EJBCA
-app.version.number=3.11.2
+app.version.number=3.11.3
svn.revision=r11608
app.version=${app.name.cap} ${app.version.number} (${svn.revision})
Index: ejbca/compile.xmli
===================================================================
--- ejbca/compile.xmli (.../Rel_3_11_2) (revision 12148)
+++ ejbca/compile.xmli (.../Rel_3_11_3) (revision 12148)
@@ -223,8 +223,8 @@
2010-12-23: EJBCA 3.11.1 and cert-cvc 1.2.12 with EAC ePassport support is now out! +
2011-04-29: EJBCA 3.11.2 and cert-cvc 1.2.12 with EAC ePassport support is now out!
Visit the download section. There is also a LiveCD!