 | 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: PdfToolsAssembly: PdfTools (in PdfTools.dll) Version: 1.9.1+b77910aba6fa7f07fcfd9b66a6f8c5a618f049a3
Syntaxpublic 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
ExceptionsException | Condition |
---|
CorruptException | The PFX (PKCS#12) archive is corrupt and cannot be read. |
PasswordException | The password is invalid. |
ArgumentException | The PFX (PKCS#12) archive is incomplete. |
ArgumentNullException | if archive is . |
See Also