Hello!
When accessing a HTTPS site, open the dialog box several times to select the certificate.
Is it possible for the component to select automatically?
I'm working on a VCL Forms project in Delphi 2006.
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Auto Select Certificate
Auto Select Certificate
You do not have the required permissions to view the files attached to this post.
- salvadordf
- Posts: 4082
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Auto Select Certificate
Hi,
See the ClientCertsBrowser demo.
You need to implement the TWVBrowser.OnClientCertificateRequested event and create a TCoreWebView2ClientCertificateRequestedEventArgs instance.
Then set the TCoreWebView2ClientCertificateRequestedEventArgs.SelectedCertificate to one of the certificates in TCoreWebView2ClientCertificateRequestedEventArgs.MutuallyTrustedCertificates and set TCoreWebView2ClientCertificateRequestedEventArgs.Handled to True.
Read the code comments for the TWVBrowser.OnClientCertificateRequested event and TCoreWebView2ClientCertificateRequestedEventArgs to know more details.
See the ClientCertsBrowser demo.
You need to implement the TWVBrowser.OnClientCertificateRequested event and create a TCoreWebView2ClientCertificateRequestedEventArgs instance.
Then set the TCoreWebView2ClientCertificateRequestedEventArgs.SelectedCertificate to one of the certificates in TCoreWebView2ClientCertificateRequestedEventArgs.MutuallyTrustedCertificates and set TCoreWebView2ClientCertificateRequestedEventArgs.Handled to True.
Read the code comments for the TWVBrowser.OnClientCertificateRequested event and TCoreWebView2ClientCertificateRequestedEventArgs to know more details.