public static DateTime?GetrevocationDate(X509Certificate2 cert) { OCSPRequest request = new OCSPRequest(cert); OCSPResponse response = request.SendRequest(); if (response.Responses[0].CertStatus == CertificateStatus.Revoked) { return(response.Responses[0].RevocationInfo.RevocationDate); } return(null); }
public OCSPReq(Stream instr) { req = OCSPRequest.getInstance(new ASN1InputStream(instr).readObject()); }
public OCSPReq(OCSPRequest req) { this.req = req; }