// To be fully backwards compatible we just use the first fingerprint found..
final CertificateInfo info = certificateStoreSession.findFirstCertificateInfo(issuerdn, certserno);
if (info == null) {
final String msg = intres.getLocalizedMessage("ra.errorfindentitycert", issuerdn, certserno.toString(16));
logSession.log(admin, LogConstants.INTERNALCAID, LogConstants.MODULE_RA, new Date(), null, null, LogConstants.EVENT_INFO_REVOKEDENDENTITY, msg);
throw new FinderException(msg);
}
final int caid = info.getIssuerDN().hashCode();
final String username = info.getUsername();
assertAuthorizedToCA(admin, caid, username, LogConstants.EVENT_ERROR_REVOKEDENDENTITY);
int certificateProfileId = info.getCertificateProfileId();