I'm trying to make a call to a RESTful API from within AX code. The site I'm trying to reach has an invalid certificate that I would like to bypass. Is it possible to bypass the certificate validation. There is a method that looks as though it should do what I want, but I can't figure out how to use it in X++.
HttpWebRequest.set_ServerCertificateValidationCallback(RemoteCertificateValidationCallback value)
It's the parameter for this method that I don't understand. RemoteCertificateValidationCallback is not an AX object that I can find. I'm not sure how to set that value. Does anyone know how this works or have a code sample? Or is there another option for bypassing a certificate validation on an API call?
*This post is locked for comments
I have the same question (0)

Report
All responses (
Answers (