Click or drag to resize
Pdftools logo

HttpClientHandlerAddTrustedCertificate Method

Add a certificate to the trust store

Add a certificate to the trust store of this HttpClientHandler instance. The certificates in the trust store are used to verify the certificate of the SSL/TLS server (see HttpClientHandler). You should add trusted certification authorities (Root CA) certificates to the trust store. However, you can also add server certificates (e.g. self-signed certificates) and intermediate CA certificates.

Namespace: PdfTools
Assembly: PdfTools (in PdfTools.dll) Version: 1.5.0+84bd4d36da7e2449ee09fddee89e23a99b6ffcca
Syntax
C#
public void AddTrustedCertificate(
	Stream cert
)

Parameters

cert  Stream
The certificate may be in either PEM (.pem, ASCII text) or DER (.cer, binary) form.
Exceptions
ExceptionCondition
CorruptExceptionThe certificate cannot be read.
ArgumentNullExceptionif cert is .
See Also