* * *

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

regs

  • New member
  • *
  • Posts: 42
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

  • Sr. Member
  • ****
  • Posts: 301
    • 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) open source project - Admin, Developer

BeniBela

  • Hero Member
  • *****
  • Posts: 563
    • 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

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus