Working in NAV 2017, I'm trying to use CU1290 SOAP Web Service Request Mgt. to send a request and get a response from a server using a self-signed certificate. I've installed the certificate on the server with certlm in Trusted Root Certificate Authorities. I can make the request through my browser (which does still show a certificate error) but calling through the NAV library and eventually DotNet's System.Het.HttpWebRequest.GetResponse, I get the failure message "The remote certificate is invalid according to the validation procedure."
I see from the DotNet forums that you can override the certificate validation logic by installing a callback for ServicePointManager.ServerCertificateValidationCallback (https://stackoverflow.com/questions/1189897/net-programming-what-to-validate-on-an-ssl-self-signed-certificate).
The problem is, I can't figure out how to load a callback from within C/AL. Is this possible? Is there another way to disable the certificate test, ideally on a call-by-call basis? Should I just do all this in DotNet and give up on CU1290?
*This post is locked for comments
I have the same question (0)