if (issuerCertData == null) {
log.warn("Resource not found: " + resource);
throw new OpsException("Cannot find certificate for: " + issuer);
}
CertificateReader reader = new CertificateReader();
Certificate[] issuerCerts = reader.parse(issuerCertData);
if (issuerCerts == null || issuerCerts.length == 0) {
throw new OpsException("Error reading certificate: " + issuer);
}