How to use A3 certificates with Indy 10 on Delphi XE5?

738 Views Asked by At

I need to connect to a WebService and validate my connection using a digital certificate. My clients have two types of certificates: A1 (pfx file) and A3 (token or smartcard).

I was able to use A1 certificates (pfx files), but now I want to know how to ask for an A3 certificate on my application for later use with Indy.

The point is: how to list the Windows' installed/available certificates? With this list, how to use the selected certificate with Indy?

The A3 certificates are selectable through the Windows' certificates stores. Below is a screenshot

Selecting a certificate

Using CAPICOM e WININET I can show this dialog box and "apply" the selected certificate to the connection using InternetSetOptions, and I can also do it using pfx files.

I want to use Indy to have more control about the used protocol (TLS 1.2), because using WININET (Delphi Default for WebServices) the protocol depends on the Internet Options. See below:

Internet Options

0

There are 0 best solutions below