salvadordf / CEF4Delphi

CEF4Delphi is an open source project to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC for Windows, Linux and MacOS.
https://www.briskbard.com/forum/
Other
1.2k stars 365 forks source link

Load X509 Certificate memory certificate #447

Closed fneto-dev closed 1 year ago

fneto-dev commented 1 year ago

Is possible to load x509 certificate from file (.cer/.pfx) or stream?

salvadordf commented 1 year ago

The CEF API doesn't allow you to load a custom certificate.

Chromium allows you to authenticate the user with the TChromiumCore.OnSelectClientCertificate event where you can show a certificate list and let the user select which one to use or select one automatically from a list of certificates that the server could accept. See the TMiniBrowserFrm.Chromium1SelectClientCertificate procedure in the MiniBrowser demo for all the details.

Read these code comments about that event.

Please, use our forums for more questions. https://www.briskbard.com/forum/