certificateProfileSession.removeCertificateProfile(intAdmin, "WSTESTPROFILE");
}
CertificateProfile profile = new EndUserCertificateProfile();
profile.setAllowValidityOverride(true);
certificateProfileSession.addCertificateProfile(intAdmin, "WSTESTPROFILE", profile);
UserDataVOWS tokenUser1 = new UserDataVOWS();
tokenUser1.setUsername(username);
tokenUser1.setPassword("foo123");
tokenUser1.setClearPwd(true);
tokenUser1.setSubjectDN("CN=" + username);
tokenUser1.setCaName(caName);
tokenUser1.setEmail(null);
tokenUser1.setSubjectAltName(null);
tokenUser1.setStatus(UserDataVOWS.STATUS_NEW);
tokenUser1.setTokenType(UserDataVOWS.TOKEN_TYPE_USERGENERATED);
tokenUser1.setEndEntityProfileName("EMPTY");
tokenUser1.setCertificateProfileName("ENDUSER");
KeyPair basickeys = KeyTools.genKeys("1024", AlgorithmConstants.KEYALGORITHM_RSA);
PKCS10CertificationRequest basicpkcs10 = new PKCS10CertificationRequest("SHA1WithRSA", CertTools.stringToBcX509Name("CN=NOTUSED"), basickeys
.getPublic(), new DERSet(), basickeys.getPrivate());
ArrayList<TokenCertificateRequestWS> requests = new ArrayList<TokenCertificateRequestWS>();
TokenCertificateRequestWS tokenCertReqWS = new TokenCertificateRequestWS();