Recent

Author Topic: Indy or Synapse and Windows Certificate Store  (Read 3062 times)

regs

  • Jr. Member
  • **
  • Posts: 53
Indy or Synapse and Windows Certificate Store
« on: May 17, 2017, 02:29:34 pm »
Wonder, can either Indy or Synapse load personal certificate with key from Windows Certificate Store?

Remy Lebeau

  • Hero Member
  • *****
  • Posts: 1314
    • Lebeau Software
Re: Indy or Synapse and Windows Certificate Store
« Reply #1 on: May 23, 2017, 09:15:59 pm »
I do not know if Synapse can, but Indy cannot, at least not directly.

Indy uses OpenSSL primarily, and you can access the Windows certificate store yourself to export the desired certificate(s) and then manually import them into OpenSSL's certificate store.  Or IIRC, at some point in time there was a 3rd party effort to integrate the Windows certificate store directly in OpenSSL itself, so you might try looking around for that patch.

Or, you can write your own custom Indy SSLIOHandler class to use Microsoft's SChannel API instead of OpenSSL, then it would use Windows certificates transparently.
Remy Lebeau
Lebeau Software - Owner, Developer
Internet Direct (Indy) - Admin, Developer (Support forum)

BeniBela

  • Hero Member
  • *****
  • Posts: 906
    • homepage
Re: Indy or Synapse and Windows Certificate Store
« Reply #2 on: May 24, 2017, 10:52:28 pm »
My Internet Tools use Wininet with Schannel

 

TinyPortal © 2005-2018