log.info("Creating a CVC CA (process request)");
CVCCAInfo cvccainfo = (CVCCAInfo) cainfo;
ca = new CVCCA(cvccainfo);
}
ca.setCertificateChain(certificates);
CATokenContainer token = new CATokenContainerImpl(new NullCATokenInfo(), cainfo.getCAId());
ca.setCAToken(token);
// set status to active
entityManager.persist(new CAData(cainfo.getSubjectDN(), cainfo.getName(), SecConst.CA_EXTERNAL, ca));
// Publish CA certificates.
publishCACertificate(admin, certificates, null, ca.getSubjectDN());