ContentSigner contentSigner = contentSignerBuilder.build(bcRequest.getIssuerPrivateKey());
X509CertificateHolder[] chain = new X509CertificateHolder[] { new X509CertificateHolder(bcRequest.getIssuerCertificate().getEncoded()) };
BasicOCSPResp basicResp = builder.build(contentSigner, chain, new Date());
OCSPResp ocspResp = new OCSPRespBuilder().build(OCSPRespBuilder.SUCCESSFUL, basicResp);
OCSPResponse response = new OCSPResponse(ocspResp.getEncoded());
return response;
} catch (Exception e) {
throw new CertificateException(e);
}
}