Click or drag to resize
Pdf Library for .NET

PdfDigitalCertificate Class

This class represents a certificate used for digital signatures in a pdf document. Obtain instances from a PdfDigitalCertificatesCollection returned by PdfDigitalCertificatesStore.
Inheritance Hierarchy
SystemObject
  SelectPdf.UniversalPdfDigitalCertificate

Namespace: SelectPdf.Universal
Assembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntax
public class PdfDigitalCertificate

The PdfDigitalCertificate type exposes the following members.

Properties
 NameDescription
Public propertyEndDate Gets the end date of the certificate.
Public propertyIssuer Gets the certificate issuer name.
Public propertySerialNumber Gets the certificate serial number.
Public propertyStartDate Gets the start date of the certificate.
Public propertySubject Gets the certificate subject name.
Public propertyVersion Gets the certificate version number.
Top
Example
PdfDigitalCertificatesCollection certs =
    PdfDigitalCertificatesStore.GetCertificates(@"C:\certs\signer.pfx", "secret");
PdfDigitalCertificate cert = certs[0];
string subject = cert.Subject;
System.DateTime expires = cert.EndDate;
See Also