Delphi 7 - Inform A3 Certificate at Indy HTTP

Asked

Viewed 658 times

1

Hello, I am trying and unsuccessfully so far to perform the integration with a web service, where I use the Indy HTTP component, updated to version 10 in Delphi 7 to access and make a GET using XML and JSON in a Web Service REST, but it is necessary to use the digital certificate, that is on an A3 Token that it is not possible to export to a file. cer with the private key.

I can read the certificate token using CAPICOM libs and Dlls, but I can’t tell Idssliohandlersocketopenssl to use the certificate.

From what I researched, it seems to me that it is necessary to send the data as Customheader, but never used this way, someone already managed to accomplish something like?

The WS I need to access is this: https://val.portalunico.siscomex.gov.br/due/api/ext/due

The curious thing is that accessing from the machine that I am certified I get error 401 Unauthorized, the same that I get when sending with Idhttp, but on another machine without the certificate installed I get a different error, " No Resource method found for GET, Return 405 with Allow header"

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.