Click or drag to resize

IRequestHandlerOnSelectClientCertificate Method

Version 83.4.2
Called when the browser needs user to select Client Certificate for authentication requests (eg. PKI authentication).

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 83.4.2.0 (83.4.2.0)
Syntax
bool OnSelectClientCertificate(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	bool isProxy,
	string host,
	int port,
	X509Certificate2Collection certificates,
	ISelectClientCertificateCallback callback
)

Parameters

chromiumWebBrowser
Type: CefSharpIWebBrowser
The ChromiumWebBrowser control
browser
Type: CefSharpIBrowser
the browser object
isProxy
Type: SystemBoolean
indicates whether the host is a proxy server
host
Type: SystemString
hostname
port
Type: SystemInt32
port number
certificates
Type: System.Security.Cryptography.X509CertificatesX509Certificate2Collection
List of Client certificates for selection
callback
Type: CefSharpISelectClientCertificateCallback
Callback interface used for asynchronous continuation of client certificate selection for authentication requests.

Return Value

Type: Boolean
Return true to continue the request and call ISelectClientCertificateCallback.Select() with the selected certificate for authentication. Return false to use the default behavior where the browser selects the first certificate from the list.
See Also