summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape/cms/authentication/CMCAuth.java
diff options
context:
space:
mode:
authorcfu <cfu@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2008-04-04 17:40:09 +0000
committercfu <cfu@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2008-04-04 17:40:09 +0000
commit8833331ed583703846578a3d3326953a4e6fac74 (patch)
tree527d8621968f0c2d0a64bd1895a33a6c1d64dc21 /pki/base/common/src/com/netscape/cms/authentication/CMCAuth.java
parentcf207ff991f19604cd9c939d2e58ced032577080 (diff)
downloadpki-8833331ed583703846578a3d3326953a4e6fac74.tar.gz
pki-8833331ed583703846578a3d3326953a4e6fac74.tar.xz
pki-8833331ed583703846578a3d3326953a4e6fac74.zip
bug# 439052 - CMC CRMF requests cause exception in logging: Unmatched braces in the pattern
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@16 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/base/common/src/com/netscape/cms/authentication/CMCAuth.java')
-rw-r--r--pki/base/common/src/com/netscape/cms/authentication/CMCAuth.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/pki/base/common/src/com/netscape/cms/authentication/CMCAuth.java b/pki/base/common/src/com/netscape/cms/authentication/CMCAuth.java
index 0ad72cf89..df90587e2 100644
--- a/pki/base/common/src/com/netscape/cms/authentication/CMCAuth.java
+++ b/pki/base/common/src/com/netscape/cms/authentication/CMCAuth.java
@@ -470,6 +470,7 @@ public class CMCAuth implements IAuthManager, IExtendedPluginInfo,
TaggedRequest.Type type = taggedRequest.getType();
if (type.equals(TaggedRequest.PKCS10)) {
+ CMS.debug("CMCAuth: in PKCS10");
TaggedCertificationRequest tcr =
taggedRequest.getTcr();
int p10Id = tcr.getBodyPartID().intValue();
@@ -535,6 +536,7 @@ public class CMCAuth implements IAuthManager, IExtendedPluginInfo,
}
} else if (type.equals(TaggedRequest.CRMF)) {
+ CMS.debug("CMCAuth: in CRMF");
try {
CertReqMsg crm =
taggedRequest.getCrm();
@@ -550,8 +552,8 @@ public class CMCAuth implements IAuthManager, IExtendedPluginInfo,
// reset value of auditCertSubject
if( name != null ) {
- byte[] namebyte = ASN1Util.encode(name);
- String ss = new String(namebyte);
+ String ss = name.getRFC1485();
+
auditCertSubject = ss;
if( auditCertSubject.equals( "" ) ) {
auditCertSubject =