summaryrefslogtreecommitdiffstats
path: root/pki
diff options
context:
space:
mode:
authorjmagne <jmagne@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-04-17 00:19:56 +0000
committerjmagne <jmagne@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-04-17 00:19:56 +0000
commit97b06ba3eda57156111dc377bcbc5685404b4c94 (patch)
tree41c6dba0db786039bff7a89b93ea9f9b78e405ee /pki
parent8aa770bea2ec9e1012d9154c82c7cd7cad133587 (diff)
downloadpki-97b06ba3eda57156111dc377bcbc5685404b4c94.tar.gz
pki-97b06ba3eda57156111dc377bcbc5685404b4c94.tar.xz
pki-97b06ba3eda57156111dc377bcbc5685404b4c94.zip
Fix Bugzilla Bug#695015 -Serial No. of a revoked certificate is not populated in the CA signedAudit messages. Additional fix to print out serial number when TPS revokes a cert.
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1975 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki')
-rw-r--r--pki/base/common/src/com/netscape/cms/servlet/cert/DoRevokeTPS.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/pki/base/common/src/com/netscape/cms/servlet/cert/DoRevokeTPS.java b/pki/base/common/src/com/netscape/cms/servlet/cert/DoRevokeTPS.java
index 08756a5ba..2969db90f 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/cert/DoRevokeTPS.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/cert/DoRevokeTPS.java
@@ -303,6 +303,24 @@ public class DoRevokeTPS extends CMSServlet {
String auditApprovalStatus = ILogger.SIGNED_AUDIT_EMPTY_VALUE;
String auditReasonNum = String.valueOf(reason);
+
+ if (revokeAll != null) {
+ CMS.debug("DoRevokeTPS.process revokeAll" + revokeAll);
+
+ String serial = "";
+ String[] tokens;
+ tokens = revokeAll.split("=");
+
+ if (tokens.length == 2) {
+ serial = tokens[1];
+ //remove the trailing paren
+ if (serial.endsWith(")")) {
+ serial = serial.substring(0,serial.length() -1);
+ }
+ auditSerialNumber = serial;
+ }
+ }
+
long startTime = CMS.getCurrentDate().getTime();
try {