BasicOCSPRespBuilder builder = new BasicOCSPRespBuilder(keyInfo, digestCalculator);
Extension ocspNonce = ocspReq.getExtension(OCSPObjectIdentifiers.id_pkix_ocsp_nonce);
if (ocspNonce != null) {
builder.setResponseExtensions(new Extensions(new Extension[] { ocspNonce }));
}
Req[] list = ocspReq.getRequestList();
for (Req req : list) {
CertificateID certificateID = req.getCertID();