Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    CrlClient Class

    Allows you to send a CLR request for a certificate.

    Namespace: DevExpress.Office.DigitalSignatures

    Assembly: DevExpress.Pdf.v25.1.Core.dll

    NuGet Package: DevExpress.Pdf.Core

    #Declaration

    public class CrlClient :
        ICrlClient

    #Remarks

    The CrlClient class is the default ICrlClient interface implementation. Use the CrlClient object in the Pkcs7Signer instance constructor, as shown below:

    using DevExpress.Pdf;
    using DevExpress.Office.DigitalSignatures;
    using DevExpress.Office.Tsp;
    
    using (var signer = new PdfDocumentSigner("Document.pdf"))
    {
        IOcspClient ocspClient = new OcspClient();
        ICrlClient crlClient = new CrlClient();
    
        // the freetsa client is used for demonstration purposes
        ITsaClient tsaClient = new TsaClient(new Uri(@"https://freetsa.org/tsr"), HashAlgorithmType.SHA256);
    
        // Create a PKCS#7 signature:
        Pkcs7Signer pkcs7Signature = new Pkcs7Signer("Signing Documents//testcert.pfx", "123",
         HashAlgorithmType.SHA256, tsaClient, ocspClient, crlClient, PdfSignatureProfile.PAdES_BES);
    
        // Create a new signature field:
        var signatureFieldInfo = new PdfSignatureFieldInfo(1);
        signatureFieldInfo.Name = "SignatureField";
        signatureFieldInfo.SignatureBounds = new PdfRectangle(10, 10, 150, 150);
    
        // Apply a signature with a new signature:
        var signature =
        new PdfSignatureBuilder(pkcs7Signature, signatureFieldInfo);
    
        // Sign and save the document:
        signer.SaveDocument("SignedDocument.pdf", signature);
    }
    

    #Implements

    #Inheritance

    Object
    CrlClient
    See Also