assertTrue("Wrong Request ID" + resp.getRequestId(), resp.getRequestId() == requestId);
assertTrue("Edit user failed", resp.isSuccessful() == true);
// Try to retrieve keystore
requestId = random.nextLong();
byte[] requestData = NonEjbTestTools.generatePKCS10Req("CN=dummyname", password);
CertificateRequestRequest certificateRequestRequest = new CertificateRequestRequest(requestId, username, password, CertificateRequestRequest.REQUEST_TYPE_PKCS10, requestData, CertificateRequestRequest.RESPONSE_TYPE_ENCODED);
smgs = new SubMessages(null,null,null);
smgs.addSubMessage(certificateRequestRequest);
msghome.create(username+"csr", smgs);
msg = waitForUser(username+"csr");
assertNotNull("No response.", msg);