PkcsPkiEnvelopeEncoder envEnc = new PkcsPkiEnvelopeEncoder(
getCertificate(keyPair), "DES");
PkiMessageEncoder enc = new PkiMessageEncoder(keyPair.getPrivate(),
getCertificate(keyPair), envEnc);
TransactionId transId = TransactionId.createTransactionId();
Nonce senderNonce = Nonce.nextNonce();
X500Name name = new X500Name("CN=jscep.org");
BigInteger serialNumber = BigInteger.ONE;
IssuerAndSerialNumber iasn = new IssuerAndSerialNumber(name,
serialNumber);