Click or drag to resize
Pdftools logo

HttpClientHandlerSetClientCertificate Method

Set the SSL/TLS client certificate as PFX (PKCS#12) archive

The file must contain the certificate itself, all certificates of the trust chain, and the private key.

Namespace: PdfTools
Assembly: PdfTools (in PdfTools.dll) Version: 1.1.0.0
Syntax
C#
public void SetClientCertificate(
	Stream archive,
	string password
)

Parameters

archive  Stream
The SSL client certificate in PKCS#12 format (.p12, .pfx)
password  String
The password required to decrypt the private key of the archive
Exceptions
ExceptionCondition
CorruptExceptionThe PFX (PKCS#12) archive is corrupt and cannot be read.
PasswordExceptionThe password is invalid.
ArgumentExceptionThe PFX (PKCS#12) archive is incomplete.
ArgumentNullExceptionif archive is .
See Also