Blame SOURCES/pki-core-pre-signed-CMC-renewal-UniqueKeyConstraint.patch

632623
From 7f29261148fa4a27824cb2006c515d376288ec64 Mon Sep 17 00:00:00 2001
632623
From: Christina Fu <cfu@redhat.com>
632623
Date: Tue, 20 Jun 2017 15:04:12 -0700
632623
Subject: [PATCH] Ticket #2618 UniqueKeyConstraint fix on subjectDN comparison
632623
632623
(cherry picked from commit 2d69d9332eea7ddc5205dc9e44d15452be4be61f)
632623
---
632623
 .../com/netscape/cms/profile/constraint/UniqueKeyConstraint.java    | 6 +-----
632623
 1 file changed, 1 insertion(+), 5 deletions(-)
632623
632623
diff --git a/base/server/cms/src/com/netscape/cms/profile/constraint/UniqueKeyConstraint.java b/base/server/cms/src/com/netscape/cms/profile/constraint/UniqueKeyConstraint.java
632623
index 030995a..2614576 100644
632623
--- a/base/server/cms/src/com/netscape/cms/profile/constraint/UniqueKeyConstraint.java
632623
+++ b/base/server/cms/src/com/netscape/cms/profile/constraint/UniqueKeyConstraint.java
632623
@@ -240,11 +240,7 @@ public class UniqueKeyConstraint extends EnrollConstraint {
632623
                             }
632623
                             // only VALID or EXPIRED certs could have reached here
632623
                             X509CertImpl origCert = rec.getCertificate();
632623
-                            String certDN =
632623
-                                    origCert.getSubjectDN().toString();
632623
-                            CMS.debug(method + " cert retrieved from ldap has subject DN =" + certDN);
632623
-
632623
-                            sjname_in_db = new X500Name(certDN);
632623
+                            sjname_in_db = (X500Name) origCert.getSubjectDN();
632623
 
632623
                             if (sjname_in_db.equals(sjname_in_req) == false) {
632623
                                 msg = msg + "subject name not match in same key renewal;";
632623
-- 
632623
1.8.3.1
632623