BuildBasicOCSPResponse
function BuildBasicOCSPResponse(const aResponderKeyHash : OctetString; const aProducedAt : TDateTime; const aCertID : iCertID; aStatus : tOCSPCertStatusEnum; const aRevocationTime : TDateTime; aRevocationReason : Integer; const aThisUpdate, aNextUpdate : TDateTime; const aNonce : OctetString): iBasicOCSPResponse;
BuildBasicOCSPResponse assembles an UNSIGNED BasicOCSPResponse covering a single CertID with the given status (responderID byKey = aResponderKeyHash). When aStatus is ocsRevoked, aRevocationTime / aRevocationReason populate the RevokedInfo (pass aRevocationReason < 0 to omit the reason). A non-empty aNonce is echoed in the responseExtensions (RFC 8954). The responder must sign the result with a tSigned signing method and may attach its certificate through AddSignerCertificate.