<PackageReference Include="BouncyCastle.Cryptography" Version="2.7.0" />

Org.BouncyCastle.Ocsp.OcspReq

public class OcspReq : X509ExtensionBase
public bool IsSigned { get; }

Return whether or not this request is signed.

public GeneralName RequestorName { get; }

public string SignatureAlgOid { get; }

The object identifier representing the signature algorithm.

public int Version { get; }

public OcspReq(OcspRequest req)

public OcspReq(byte[] req)

public OcspReq(Stream inStr)

If the request is signed return a possibly empty CertStore containing the certificates in the request. If the request is not signed the method returns null.

public byte[] GetEncoded()

Return the ASN.1 encoded representation of this object.

public Req[] GetRequestList()

public byte[] GetSignature()

public byte[] GetTbsRequest()

Return the DER encoding of the tbsRequest field.

public bool Verify(AsymmetricKeyParameter publicKey)

Verify the signature against the TBSRequest object we contain.