Response resp = client.waitForResponse(path);
String userId = resp.getValue("userId");
logger.debug("Response:\n===\n" + resp.toString() + "===");
if (resp.getPrimitive() == ServerPrimitives.OE_DHKEYPAIRS) {
resp = pinManagementClient.generateKeyPairs(path, userId,
passphrase);
logger.debug("Response:\n===\n" + resp.toString() + "===");
if (resp.getPrimitive() == ServerPrimitives.OE_SUCCESSFUL) {
exitWithSuccess("Keys generated successfully.");