// pkcsGetCertInitial issuerAndSubject ::= {
// issuer "the certificate authority issuer name"
// subject "the requester subject name as given in PKCS#10"
// }
ASN1EncodableVector vec = new ASN1EncodableVector();
vec.add(new DERUTF8String(ca.getIssuerDN().getName()));
vec.add(new DERUTF8String(dn));
DERSequence seq = new DERSequence(vec);
// The self signed certificate has already been generated when the request message was created
// Create self signed cert, validity 1 day
//cert = CertTools.genSelfCert(reqdn,24*60*60*1000,null,keys.getPrivate(),keys.getPublic(),AlgorithmConstants.SIGALG_SHA1_WITH_RSA,false);