return Collections.emptyList();
}
String password = getPassword(csr);
if (!password.equals("password")) {
LOGGER.debug("Invalid password");
throw new OperationFailureException(FailInfo.badRequest);
}
PublicKey pubKey = CertificationRequestUtils.getPublicKey(csr);
X509Certificate issued = generateCertificate(pubKey, subject, name,
getSerial());
LOGGER.debug("Issuing {}", issued);
CACHE.put(
new IssuerAndSerialNumber(name, issued.getSerialNumber()),
issued);
return Collections.singletonList(issued);
} catch (Exception e) {
LOGGER.debug("Error in enrollment", e);
throw new OperationFailureException(FailInfo.badRequest);
}
}