PdfCertificate
Overview
PdfCertificate 是一个类在Aspose.PDF FOSS的.NET中.
代表一个证书 + PDF签名的私钥.
这个类提供了在NET程序中与PdfCertificate对象工作的3种方法. 有的方法包括: FromDerFiles, FromPfx. 所有公众成员在安装了Aspose.PDF FOSS for .NET 包后,可以访问任何.NET应用程序. 特性: IssuerName, SerialNumber, SubjectName.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
SubjectName | string | Read | 证书中提取的物体名称 (CN或O). |
IssuerName | string | Read | 发行人名称从证书中提取. |
SerialNumber | byte[] | Read | 证书的序列号. |
Methods
| Signature | Description |
|---|---|
FromPfx(pfxData: byte[], password: string) | 从 PFX/PKCS#12 文件上载证书和私钥. |
FromPfx(path: string, password: string) | 从PFX文件路径上加载. |
FromDerFiles(certificateDer: byte[], pkcs8PrivateKeyDer: byte[]) | 通过DER证书的原始字节和PKCS#8 DER私钥进行加载. |