log.info("Generating a small key pair, might take a few seconds..."); KeyPair keyPair1 = KeyTools.genKeys(512); KeyPair keyPair2 = KeyTools.genKeys(512);
    public void test09addCertReqHist() throws Exception {        log.debug(">test09addCertReqHist()");        ICertificateStoreSessionRemote store = storehome.create();                        log.info("Generating a small key pair, might take a few seconds...");        KeyPair keyPair1 = KeyTools.genKeys(512);        KeyPair keyPair2 = KeyTools.genKeys(512);                cert1 = CertTools.genSelfCert("C=SE,O=PrimeCA,OU=TestCertificateData,CN=CertReqHist1", 24, null, keyPair.getPrivate(), keyPair.getPublic(), false);        cert2 = CertTools.genSelfCert("C=SE,O=PrimeCA,OU=TestCertificateData,CN=CertReqHist2", 24, null, keyPair.getPrivate(), keyPair.getPublic(), false);                UserDataVO userdata = new UserDataVO();        Random rand = new Random(new Date().getTime() + 4711);                for (int i = 0; i < 6; i++) {            int randint = rand.nextInt(9);            username += (new Integer(randint)).toString();        }        log.debug("Generated random username: username =" + username);        userdata.setUsername(username);        userdata.setDN("C=SE,O=PrimeCA,OU=TestCertificateData,CN=CertReqHist1");                store.addCertReqHistoryData(admin,cert1, userdata);                userdata.setDN("C=SE,O=PrimeCA,OU=TestCertificateData,CN=CertReqHist2");        store.addCertReqHistoryData(admin,cert2, userdata);               log.debug("<test09addCertReqHist()");    }    