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);
    }
예제 #2
0
 public OCSPReq(Stream instr)
 {
     req = OCSPRequest.getInstance(new ASN1InputStream(instr).readObject());
 }
예제 #3
0
 public OCSPReq(OCSPRequest req)
 {
     this.req = req;
 }