Click or drag to resize
Pdftools logo

CustomTrustListAddArchive Method

Add certificates from a PFX (PKCS#12) archive

Add certificates to the trust list.

Namespace: PdfTools.SignatureValidation
Assembly: PdfTools (in PdfTools.dll) Version: 1.5.0+84bd4d36da7e2449ee09fddee89e23a99b6ffcca
Syntax
C#
public void AddArchive(
	Stream stream,
	string password = null
)

Parameters

stream  Stream
The certificates in PKCS#12 format (.p12, .pfx)
password  String  (Optional)
The password required to decrypt the archive.
Exceptions
ExceptionCondition
CorruptExceptionThe PFX (PKCS#12) archive is corrupt and cannot be read.
PasswordExceptionThe password is invalid.
ArgumentNullExceptionif stream is .
See Also