Click or drag to resize

CPDFPKCS12CertHelperGetCertificateWithPKCS12Path Method

Create a certificate object based on the PKCS#12 certificate file path and password, retrieving information from the original certificate.

Before calling this method, it is recommended to first call the CheckPKCS12Password(String, String) method to verify the correctness of the password.

Namespace:  ComPDFKit.DigitalSign
Assembly:  ComPDFKit.NET (in ComPDFKit.NET.dll) Version: 2.1.0+b8a973db4fce43f68ed31640e557d7c5478d7f58
Syntax
C#
public static CPDFSignatureCertificate GetCertificateWithPKCS12Path(
	string filePath,
	string password
)

Parameters

filePath
Type: SystemString
Certificate path
password
Type: SystemString
Certificate password

Return Value

Type: CPDFSignatureCertificate

When successful, returns an object of CPDFSignatureCertificate

Returns null in the following cases:

- Certificate not found at the specified path or incorrect password.

- Your license does not support this feature.

See Also