PdfCertificate

PdfCertificate

Overview

PdfCertificate is a class in Aspose.PDF FOSS for .NET.

Represents a certificate + private key for PDF signing.

This class provides 3 methods for working with PdfCertificate objects in .NET programs. Available methods include: FromDerFiles, FromPfx. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: IssuerName, SerialNumber, SubjectName.

Properties

NameTypeAccessDescription
SubjectNamestringReadThe subject name extracted from the certificate (CN or O).
IssuerNamestringReadThe issuer name extracted from the certificate.
SerialNumberbyte[]ReadThe serial number of the certificate.

Methods

SignatureDescription
FromPfx(pfxData: byte[], password: string)Load a certificate and private key from a PFX/PKCS#12 file.
FromPfx(path: string, password: string)Load from a PFX file path.
FromDerFiles(certificateDer: byte[], pkcs8PrivateKeyDer: byte[])Load from raw DER certificate bytes and a PKCS#8 DER private key.

See Also