Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL Connection fails after update to version 25 #7950

Open
MarcE85 opened this issue Jan 17, 2025 · 2 comments
Open

SSL Connection fails after update to version 25 #7950

MarcE85 opened this issue Jan 17, 2025 · 2 comments

Comments

@MarcE85
Copy link

MarcE85 commented Jan 17, 2025

1. Describe the bug

HttpClient call fails with: "The SSL connection could not be established, see inner exception. Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'. The message received was unexpected or badly formatted." in version 25, SaaS environment. In older versions and Docker, the same call works without problems.

2. To Reproduce

var
Client: HttpClient;
...
IsSuccessful := Client.Get('https://ufi.echa.europa.eu/ufi/createUFIByCount?startFormulationNumber=1&count=1', Response);
if not IsSuccessful then begin
Error(GetLastErrorText());
end;

This API is used to generate a unique identifier and has worked for years without any problems. Other ECHA API endpoints, e.g., https://api.ecs.echa.europa.eu/submission/v3, are working without any issues.

3. Expected behavior

The HttpClient call succeeds.

4. Actual behavior
The HttpClient call fails with the following GetLastErrorText():
"The SSL connection could not be established, see inner exception. Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'. The message received was unexpected or badly formatted"

5. Versions:

AL Language: V14
Visual Studio Code:
Business Central: 25.2.27863.0 (SaaS)
List of Visual Studio Code extensions that you have installed:
Operating System:
[ *] Windows
Linux
MacOS
Final Checklist
Please remember to do the following:

[ X] Search the issue repository to ensure you are reporting a new issue

[ X] Reproduce the issue after disabling all extensions except the AL Language extension

[ X] Simplify your code around the issue to better isolate the problem

@jmadrigalTCN
Copy link

May be, it has something to do with this:

https://www.kauffmann.nl/2024/12/02/httpclient-and-certificate-validation-in-business-central-v25/

Kind regards

@MarcE85
Copy link
Author

MarcE85 commented Jan 20, 2025

May be, it has something to do with this:

https://www.kauffmann.nl/2024/12/02/httpclient-and-certificate-validation-in-business-central-v25/

Kind regards

I don't know because it started with that update, but in that post, it is stated that the change was reverted. So I don't understand why there has been a handshake failure since the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants