You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
HttpClient call fails with: "The SSL connection could not be established; the remote certificate is invalid because of errors in the certificate chain: UntrustedRoot, RevocationStatusUnknown, OfflineRevocation" in version 25, SaaS environment. In older versions and Docker (https://bcartifacts.azureedge.net/sandbox/25.0.23364.25738/nl), the same call works without problems.
To Reproduce
var
Client: HttpClient;
...
Client.Clear();
Client.AddCertificate(Certificate1Base64, Certificate1PassPhrase);
clear(ResponseMsg);
if (NOT Client.Send(RequestMsg, ResponseMsg)) then
Error(GLB_MSG_ERROR, 'Client.Get', GetLastErrorText(),'');
Actual behavior
The HttpClient call fails with the following GetLastErrorText():
"The SSL connection could not be established, see inner exception. The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot, RevocationStatusUnknown, OfflineRevocation"
Versions:
AL Language: V14
Visual Studio Code:
Business Central: 25.0.23364.25412 (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
The text was updated successfully, but these errors were encountered:
The error message is about the remote certificate. That means it is not about the client certificate but about the SSL certificate used by the endpoint https://api.mijn.overheid.nl.
In my opinion, this change should have been documented properly because it is a breaking change (maybe I didn't search good enough?). And we should get an option to bypass the validation check or, even better, provide the root certificate to the HttpClient as a custom trusted root certificate.
Describe the bug
HttpClient call fails with: "The SSL connection could not be established; the remote certificate is invalid because of errors in the certificate chain: UntrustedRoot, RevocationStatusUnknown, OfflineRevocation" in version 25, SaaS environment. In older versions and Docker (https://bcartifacts.azureedge.net/sandbox/25.0.23364.25738/nl), the same call works without problems.
To Reproduce
var
Client: HttpClient;
...
Client.Clear();
Client.AddCertificate(Certificate1Base64, Certificate1PassPhrase);
The certificate used is the "PKI-Overheid certificate" (https://www.pki-overheid-certificaat.nl/certificaten/), which is used to authenticate Dutch government APIs.
Expected behavior
The HttpClient call succeeds.
Actual behavior
The HttpClient call fails with the following GetLastErrorText():
"The SSL connection could not be established, see inner exception. The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot, RevocationStatusUnknown, OfflineRevocation"
Versions:
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
The text was updated successfully, but these errors were encountered: