Issue-ID: AAF-219
Change-Id: I835a9bb813832a6df4ee804c551d46bfe5307ad0
Signed-off-by: Instrumental <jcgmisc@stl.gathman.org>
if(fields==null) {
throw new CertException(tag + MUST_EXIST_TO_CREATE_CSRS_FOR + caName);
}
if(fields==null) {
throw new CertException(tag + MUST_EXIST_TO_CREATE_CSRS_FOR + caName);
}
+ access.log(Level.INFO, tag, "=",fields);
for(RDN rdn : rdns = RDN.parse('/',fields)) {
if(rdn.aoi==BCStyle.EmailAddress) { // Cert Specs say Emails belong in Subject
throw new CertException("email address is not allowed in " + CM_CA_BASE_SUBJECT);
for(RDN rdn : rdns = RDN.parse('/',fields)) {
if(rdn.aoi==BCStyle.EmailAddress) { // Cert Specs say Emails belong in Subject
throw new CertException("email address is not allowed in " + CM_CA_BASE_SUBJECT);
case "generationQualifier": aoi = BCStyle.GENERATION; break;
case "serialNumber": aoi = BCStyle.SERIALNUMBER; break;
default:
case "generationQualifier": aoi = BCStyle.GENERATION; break;
case "serialNumber": aoi = BCStyle.SERIALNUMBER; break;
default:
- throw new CertException("Unknown ASN1ObjectIdentifier for " + tv[0]);
+ throw new CertException("Unknown ASN1ObjectIdentifier for " + tv[0] + " in " + tagValue);
}
tag = tv[0];
value = tv[1];
}
tag = tv[0];
value = tv[1];
if('"' == c) {
inQuotes=true;
} else if(delim==c) {
if('"' == c) {
inQuotes=true;
} else if(delim==c) {
- lrnd.add(new RDN(sb.toString()));
- sb.setLength(0);
+ if(sb.length()>0) {
+ lrnd.add(new RDN(sb.toString()));
+ sb.setLength(0);
+ }
} else {
sb.append(dnString.charAt(i));
}
} else {
sb.append(dnString.charAt(i));
}