AL icon indicating copy to clipboard operation
AL copied to clipboard

Error adding a certificate to an HttpClient object

Open ftornero9 opened this issue 8 years ago • 2 comments

I am doing some tests with a web service that need a certificate to connect to it.

With this version of objects

imagen

I can add the certificate to the HttpClient make a POST and the server give the response that there is not a certificate to be detected.

So,I use the last preview version to do the same test

imagen

And when the sentence adding the certificate is executed I got the next error

imagen

In both cases I'm using the AL version 0.17.16611

imagen

ftornero9 avatar Jun 05 '18 09:06 ftornero9

Hi @ftornero9! Could you please provide a small, complete sample that reproduces this issue?

atoader avatar Jun 11 '18 10:06 atoader

There is 3 files inside the zip: Codeunit 50102 PageExtension 50130 that extends the page "Posted Sales Invoice" with a new action "WS_Send" XML file to send. You need to provide a PFX certificate and its password that you need to change here:

imagen

files.zip

Regards

ftornero9 avatar Jun 11 '18 11:06 ftornero9