Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to force TLS 1.2 on Delphi 10.2.3 THTTPRIO component?

I'm using a THTTPRIO component in Delphi 10.2.3 Tokyo to consume a webservice. I must have Internet Options settings configured for TLS 1.2/1.3 so that I can do the connection.

Is it possible to force TLS 1.2/1.3 on the connection?

I know that THTTPRIO relies on WinInet. Can it be used any other way to accomplish TLS?

I'd try to declare the USE_INDY directive in Soap.SOAPHTTPTrans.pas, but I can't get to load the certificate. It says the certificate isn't ok.

Any other ideas?

like image 474
Carlos Matos Avatar asked Jan 25 '26 21:01

Carlos Matos


1 Answers

You can enable or disable specific security options of THTTPRIO by changing the SecureProtocols property of THHPWebNode that is part of THTTPRIO component.

THTTPRIO Secure protocols property location

like image 157
SilverWarior Avatar answered Jan 28 '26 13:01

SilverWarior