Custom certificate selection dialog

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Custom certificate selection dialog

Postby sam007 » Mon Nov 07, 2016 6:08 pm

With this fix and this issue resolved, will .NET wrappers for CEF like CefSharp, have to write some code to make use of this feature or will the custom dialog for certificate selection popup automatically once CefSharp is updated with the latest branch?
sam007
Techie
 
Posts: 46
Joined: Thu Feb 18, 2016 12:36 pm

Re: Custom certificate selection dialog

Postby Czarek » Tue Nov 08, 2016 2:33 am

The referenced commit/issue added the OnSelectClientCertificate callback, see its doc comments. There is no default GUI for certificate selection.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Custom certificate selection dialog

Postby sam007 » Wed Nov 09, 2016 12:41 pm

Czarek wrote:The referenced commit/issue added the OnSelectClientCertificate callback, see its doc comments. There is no default GUI for certificate selection.


So by hooking into OnSelectClientCertificate, I can create my own GUI on CefSharp side, right? Will this provide me with the list of client certificate, to enlist in the GUI?
sam007
Techie
 
Posts: 46
Joined: Thu Feb 18, 2016 12:36 pm

Re: Custom certificate selection dialog

Postby sam007 » Thu Dec 01, 2016 1:10 pm

Any update on this? If I try to build CEF branch 2840, which has this fix, how can I test it? If there is no GUI, I would not be able to see if it works for a portal that needs certificate selection?

I guess what I was thinking of was to build CEF branch and open cefclient.exe and open the portal url that would require a certificate selection. Is there another way to verify this?
sam007
Techie
 
Posts: 46
Joined: Thu Feb 18, 2016 12:36 pm

Re: Custom certificate selection dialog

Postby Czarek » Thu Dec 01, 2016 1:16 pm

sam007 wrote:
Czarek wrote:The referenced commit/issue added the OnSelectClientCertificate callback, see its doc comments. There is no default GUI for certificate selection.


So by hooking into OnSelectClientCertificate, I can create my own GUI on CefSharp side, right? Will this provide me with the list of client certificate, to enlist in the GUI?

Just look at the source code, it should be YES to both of your questions.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Custom certificate selection dialog

Postby sam007 » Thu Dec 01, 2016 1:21 pm

Thanks for the quick reply. I am in the process of building 2840 and will then try cefclient.exe to verify.
sam007
Techie
 
Posts: 46
Joined: Thu Feb 18, 2016 12:36 pm

Re: Custom certificate selection dialog

Postby sam007 » Thu Dec 01, 2016 11:58 pm

So I built the branch 2840 for x86 and when I entered the url in cefclient.exe which should prompt me for certificate selection, it simply made use of the first certificate and signed me in.

Looking at the code, is this supposed to ask the user for certificate selection?
sam007
Techie
 
Posts: 46
Joined: Thu Feb 18, 2016 12:36 pm

Re: Custom certificate selection dialog

Postby Czarek » Fri Dec 02, 2016 1:14 am

You must implement the OnSelectClientCertificate callback to select the certificate programmatically. This allows you to implement custom GUI for certificate selection.
Maintainer of the CEF Python, PHP Desktop and CEF C API projects. My LinkedIn.
User avatar
Czarek
Virtuoso
 
Posts: 1927
Joined: Sun Nov 06, 2011 2:12 am

Re: Custom certificate selection dialog

Postby amaitland » Sat Dec 03, 2016 9:44 pm

Someone has started implementing this feature (long way from complete) see https://github.com/cefsharp/CefSharp/pull/1878

You should get involved, half the workload.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1292
Joined: Wed Jan 14, 2015 2:35 am

Re: Custom certificate selection dialog

Postby sam007 » Sun Dec 04, 2016 6:27 pm

amaitland wrote:Someone has started implementing this feature (long way from complete) see https://github.com/cefsharp/CefSharp/pull/1878

You should get involved, half the workload.



:D That is me
sam007
Techie
 
Posts: 46
Joined: Thu Feb 18, 2016 12:36 pm

Next

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 17 guests