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
| Name | Type | Access | Description |
|---|---|---|---|
SubjectName | string | Read | The subject name extracted from the certificate (CN or O). |
IssuerName | string | Read | The issuer name extracted from the certificate. |
SerialNumber | byte[] | Read | The serial number of the certificate. |
Methods
| Signature | Description |
|---|---|
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. |