/*
* Get the subject and issuer info XXX check info
*/
Name subject = new Name();
subject.addRDN(ObjectID.country, (String) h.get("country"));
subject.addRDN(ObjectID.organization ,(String) h.get("org"));
subject.addRDN(ObjectID.organizationalUnit, (String) h.get("orgunit"));
subject.addRDN(ObjectID.commonName ,(String) h.get("commonname"));
subject.addRDN(ObjectID.emailAddress ,(String) h.get("email"));
subject.addRDN(ObjectID.stateOrProvince,(String) h.get("state"));
subject.addRDN(ObjectID.locality,(String) h.get("locality"));
X509Certificate cert = new X509Certificate();
if (h.containsKey("serial")) {
cert.setSerialNumber(new BigInteger((String) h.get("serial")));
} else {