LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bypass ssl certificate error

Hi!

I am using .net for my webservices and are experiencing some trouble when moving to a new server. The code below works fine for my old server, but for my new server I get: 

Error 1172 occurred at Error calling method System.Net.Security.SslStream.AuthenticateAsClient, (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.

 

I havent been able to correct the certificates and a work around would be to bypass the cert error.

Google tells me that something like this should do the trick:

 

ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };

 

The question is: how can I do this in LabVIEW?

certtest.png

 

0 Kudos
Message 1 of 1
(2,474 Views)