+ final StringBuffer subject = new StringBuffer();
+ if (server && pDNS != null) {
+ subject.append("/commonName=");
+ subject.append(pDNS);
+ if (pMail != null) {
+ outputError(out, req, "No email is included in this certificate.");
+ }
+ if (CN.equals("")) {
+ CN = "";
+ outputError(out, req, "No real name is included in this certificate.");
+ }
+ } else {
+ subject.append("/commonName=");
+ subject.append(CN);
+ if (pMail != null) {
+ subject.append("/emailAddress=");
+ subject.append(pMail);
+ }
+ }