X509Extension ski = new X509Extension(false, new DEROctetString(subjectKeyIdentifier));
oids.add(X509Extensions.SubjectKeyIdentifier);
values.add(ski);
Attribute attribute = new Attribute(PKCSObjectIdentifiers.pkcs_9_at_extensionRequest,
new DERSet(new X509Extensions(oids, values)));
PKCS10CertificationRequest p1 = new PKCS10CertificationRequest(
"SHA1WithRSA", new X509Principal("cn=csr"),
pair.getPublic(), new DERSet(attribute), pair.getPrivate(), "BC");
PKCS10CertificationRequest p2 = new PKCS10CertificationRequest(