summaryrefslogtreecommitdiffstats
path: root/pki/base
diff options
context:
space:
mode:
Diffstat (limited to 'pki/base')
-rw-r--r--pki/base/common/src/com/netscape/cms/servlet/request/CertReqParser.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/pki/base/common/src/com/netscape/cms/servlet/request/CertReqParser.java b/pki/base/common/src/com/netscape/cms/servlet/request/CertReqParser.java
index 2e0508ba0..bfa971052 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/request/CertReqParser.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/request/CertReqParser.java
@@ -213,6 +213,22 @@ public class CertReqParser extends ReqParser {
String parami =
IRequest.SERVER_ATTRS + LB + String.valueOf(saCounter++) + RB;
+ if (name.equalsIgnoreCase(IRequest.ISSUED_CERTS) && mDetails &&
+ (req.getRequestStatus().toString().equals(RequestStatus.COMPLETE_STRING) ||
+ req.getRequestType().equals(IRequest.GETREVOCATIONINFO_REQUEST))) {
+ X509CertImpl issuedCert[] =
+ req.getExtDataInCertArray(IRequest.ISSUED_CERTS);
+ if (issuedCert != null && issuedCert[0] != null) {
+ val = "<pre>"+CMS.getCertPrettyPrint(issuedCert[0]).toString(l)+"</pre>";
+ }
+ } else if (name.equalsIgnoreCase(IRequest.CERT_INFO) && mDetails) {
+ X509CertInfo[] certInfo =
+ req.getExtDataInCertInfoArray(IRequest.CERT_INFO);
+ if (certInfo != null && certInfo[0] != null) {
+ val = "<pre>"+certInfo[0].toString()+"</pre>";
+ }
+ }
+
valstr = expandValue(prefix + parami + ".value", val);
String rawJS = "new Object;\n\r" +
prefix + parami + ".name=\"" +