keystore.load(null, null);
final KeyPair xKMSkeys = KeyTools.genKeys(info.getKeySpec(), info.getKeyAlgorithm());
final UserDataVO user = new UserDataVO("NOUSERNAME", info.getSubjectDN(), 0, info.getSubjectAltName(), "NOEMAIL", 0,0,0,0, null,null,0,0,null);
final Certificate xKMSCertificate = ca.generateCertificate(user, xKMSkeys.getPublic(),
-1, // KeyUsage
ca.getValidity(), new XKMSCertificateProfile(),
null // sequence
);
xKMScertificatechain = new ArrayList<Certificate>();
xKMScertificatechain.add(xKMSCertificate);
xKMScertificatechain.addAll(ca.getCertificateChain());