Hi,
I'trying to fire out how to use CEF to access to certificates on a smart card.
Using Chromium browser, if I browse with to an url which require to access the smart card, a dialog "Sign in to Security Device" is shown (see attached screenshot) to enter the pin code to unlock the smart card inserted into the usb card reader,
and then access to the certificates;
the same url inside CEF, using the cefsimple sample application, doesn't show anything and is redirected to an error page.
I searched through the documentation and all I found is the CefRequestHandler::OnSelectClientCertificate method,
so I tried to attach an hook on OnSelectClientCertificate but it never gets called; it seems that if the "Sign in..." dialog is not shown, the OnSelectClientCertificate isn't called.
Is there any chance to show the "Sign in..." dialog on CEF?
OS: Ubuntu 16.04 64bit
Chromium browser: 59.0.3071.109
CEF version: 3.3071
To use the use the smart card reader with Chromium, I need to execute this command:
modutil -dbdir sql:.pki/nssdb/ -add "OpenSC" -libfile /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so
Maybe it's needed to pass the full path of the "OpenSC" library to cef...
Thanks in advance