CertStore store = getCaCertificate(profile);
CertStoreInspector certStore = CertStoreInspector.getInstance(store);
X509Certificate issuer = certStore.getIssuer();
PkiMessageEncoder encoder = getEncoder(identity, identityKey, profile);
PkiMessageDecoder decoder = getDecoder(identity, identityKey, profile);
IssuerAndSubject ias = new IssuerAndSubject(X500Utils.toX500Name(issuer
.getIssuerX500Principal()), X500Utils.toX500Name(subject));
final EnrollmentTransaction trans = new EnrollmentTransaction(