From 70681bc83ccc25639da1b87940661b2649044629 Mon Sep 17 00:00:00 2001 From: Abhishek Koneru Date: Tue, 24 Jul 2012 15:35:34 -0400 Subject: Cert CLI - cert-request-review and cert-request-approve implementations --- .../common/src/com/netscape/cms/profile/common/CAEnrollProfile.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'base/common/src/com/netscape/cms/profile') diff --git a/base/common/src/com/netscape/cms/profile/common/CAEnrollProfile.java b/base/common/src/com/netscape/cms/profile/common/CAEnrollProfile.java index b44a71ee8..b154b3ee4 100644 --- a/base/common/src/com/netscape/cms/profile/common/CAEnrollProfile.java +++ b/base/common/src/com/netscape/cms/profile/common/CAEnrollProfile.java @@ -104,7 +104,6 @@ public class CAEnrollProfile extends EnrollProfile { // if PKI Archive Option present, send this request // to DRM byte optionsData[] = request.getExtDataInByteArray(REQUEST_ARCHIVE_OPTIONS); - // do not archive keys for renewal requests if ((optionsData != null) && (!request.getRequestType().equals(IRequest.RENEWAL_REQUEST))) { PKIArchiveOptions options = toPKIArchiveOptions(optionsData); @@ -175,11 +174,9 @@ public class CAEnrollProfile extends EnrollProfile { } } } - // process certificate issuance X509CertInfo info = request.getExtDataInCertInfo(REQUEST_CERTINFO); X509CertImpl theCert = null; - // #615460 - added audit log (transaction) SessionContext sc = SessionContext.getExistingContext(); sc.put("profileId", getId()); @@ -187,7 +184,6 @@ public class CAEnrollProfile extends EnrollProfile { if (setId != null) { sc.put("profileSetId", setId); } - try { theCert = caService.issueX509Cert(info, getId() /* profileId */, id /* requestId */); @@ -223,7 +219,6 @@ public class CAEnrollProfile extends EnrollProfile { } request.setRequestStatus(RequestStatus.COMPLETE); - // notifies updater plugins Enumeration updaterIds = getProfileUpdaterIds(); while (updaterIds.hasMoreElements()) { @@ -238,4 +233,5 @@ public class CAEnrollProfile extends EnrollProfile { else request.setExtData("isEncryptionCert", "false"); } + } -- cgit