Hello.
I need load a certificate from a pfx file. It's possible in OnSelectClientCertificate?
Else it's possible assing "on the fly" the know data to TCefX509Certificate created to call "callback.Select(aTCefX509Certificate)"?
Thanks
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.
Certificate in pfx file
- salvadordf
- Posts: 4304
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Certificate in pfx file
Hi,
I'm afraid that's not possible.
These are the code comments for that event :
You can only select one of those certificates.
CEF only allows us to wrap a certificate that Chromium selected in the OnSelectClientCertificate event using TCEFX509CertificateRef.
We can't create a new certificate.
I'm afraid that's not possible.
These are the code comments for that event :
Chromiun selects a few certificates installed in the operating system that the server trust.Called on the UI thread when a client certificate is being requested for
authentication. Return false (0) to use the default behavior and
automatically select the first certificate available. Return true (1) and
call ICefSelectClientCertificateCallback.Select either in this
function or at a later time to select a certificate. Do not call Select or
call it with NULL to continue without using any certificate. |isProxy|
indicates whether the host is an HTTPS proxy or the origin server. |host|
and |port| contains the hostname and port of the SSL server.
|certificates| is the list of certificates to choose from; this list has
already been pruned by Chromium so that it only contains certificates from
issuers that the server trusts.
You can only select one of those certificates.
CEF only allows us to wrap a certificate that Chromium selected in the OnSelectClientCertificate event using TCEFX509CertificateRef.
We can't create a new certificate.
Re: Certificate in pfx file
That's what I feared. Every parameters is const.
Thanks
Thanks