SubjectPublicKeyInfo spki = new SubjectPublicKeyInfo(
new AlgorithmIdentifier("1.2.840.113549.1.1.2"), new byte[4]);
List attributes = new ArrayList();
// 1.2.840.113549.1.9.1 is OID of EMAILADDRESS
attributes.add(new AttributeTypeAndValue("1.2.840.113549.1.9.1",
new AttributeValue("a@b.com", false)));
CertificationRequestInfo certReqInfo = new CertificationRequestInfo(
version, subject, spki, attributes);
AlgorithmIdentifier signatureAlgId = new AlgorithmIdentifier(
"1.2.3.44.555");
byte[] signature = { (byte) 0x01, (byte) 0x02, (byte) 0x03,