HttpClient.AddCertificate method is not working properly
Describe the bug When trying to send a request to a web service that needs a certificate there is an error when using AddCertificate method: "Cannot find the requested object". App compiles, it's a runtime error.
To Reproduce
HttpWebContent.WriteFrom(RequestStream);
HttpWebRequest.Content := HttpWebContent;
HttpWebClient.AddCertificate(txtCertificate, txtPassword);
if not HttpWebClient.Send(HttpWebRequest, HttpWebResponse) then
`Error(CommunicationErr);`
Expected behavior A response from the webservice with data as works in C/SIDE using dotnet. If the line is commented, the webservice sends an expected response "there is no certificate".
Versions: 3.0.121490 and previous versions
Hi
What is the Server runtime version? could you send us a full package that repros the issue?
/Pooya
Hi
What is the Server runtime version? could you send us a full package that repros the issue?
/Pooya
Hi, I cannot send app due to company regulations.
"platform": "14.0.29530.29573",
"application": "14.0.29537.29654",
"runtime": "2.2",
Thanks in advance
Please consider sending a subset of the package or a dummy package that reproes the issue in case you have restrictions on sending the full package.
/Pooya
HI,
Codeunit 10752 SII Doc. Upload Management. developed with pure AL could be the dummy package.
HttpWebRequest.ClientCertificates.Add(X509Certificate2);
transformed to AL does not response as in C/AL attaching a certificate and a password.
thanks
We will try to investigate the issue that you are facing. Having said that we prioritize to fix the bugs that have a clear repro. A full code unit or a package would help to get the fix faster.
/Pooya
Could be similar to #5299