AL icon indicating copy to clipboard operation
AL copied to clipboard

HttpClient and TLS compatibility

Open IgorPcelnikov opened this issue 9 years ago • 4 comments

Hello, how can we define TLS1.2 (force) when using HttpClient request (new REST API)? In .NET we can call static function SecurityPointManager.SecurityProtocol(3072) to switch from standard 1.0 to 1.2 (3072 is 1.2).

Thanks

IgorPcelnikov avatar Apr 13 '17 17:04 IgorPcelnikov

There is currently no way of enforcing which Security Protocol the HttpClient uses. Is this necessary for your system to work?

atoader avatar Apr 18 '17 06:04 atoader

Hello, yes, this is necessary for solution to work. Any date on adding this?

Igor

IgorPcelnikov avatar Jul 20 '17 18:07 IgorPcelnikov

Hi Igor! Sorry for the delay. I've been trying to find a workaround for you until we get to work on this. At the moment, we are working very hard on polishing the experience and fixing compiler issues. It might take a while until we manage to implement this.

I suggest creating a separate service (maybe an Azure Function) where you can have full access to the SecurityPointManager, set the version you need, do any processing that requires .NET and return the final result to your extension.

atoader avatar Jul 26 '17 11:07 atoader

What's the current status of this issue?

According to the documentation, TLS1.2 is the default security level in .Net 4.6. Does this mean you are currently using .Net 4.5?

Changing to TLS1.2 in .Net 4.5 is just a matter of calling ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12

It would really be appreciated if this option can be added quickly, it would save a lot of work because we can then implement integration directly with AL code instead of creating Azure functions.

ajkauffmann avatar Aug 29 '17 08:08 ajkauffmann