Click or drag to resize

CPDFPKCS12CertHelperGeneratePKCS12Cert Method

Generate a certificate that conforms to the PKCS #12 standard.

Namespace:  ComPDFKit.DigitalSign
Assembly:  ComPDFKit.NET (in ComPDFKit.NET.dll) Version: 2.0.0.0
Syntax
C#
public static bool GeneratePKCS12Cert(
	string info,
	string password,
	string savePath,
	CPDFCertUsage usage,
	bool is_2048
)

Parameters

info
Type: SystemString

Fill in the Subject field of the certificate.

Format, e.g.

/C=SG/CN=Alan/[email protected]/OU=RD Department/O=ComPDFKit

Common fields:

C (Country); ST (State); L (Location); O (Organization); OU (Organizational Unit); CN (Common Name); emailAddress (Email Address)

password
Type: SystemString
Password
savePath
Type: SystemString
Certificate save path (the path should include the certificate name with .pfx or .p12 extension)
usage
Type: ComPDFKit.DigitalSignCPDFCertUsage
Certificate usage
is_2048
Type: SystemBoolean

Enable more secure 2048-bit key encryption

Enable 1024-bit key encryption

Return Value

Type: Boolean

Certificate generation successful

Certificate generation failed or your license does not support this feature

See Also