Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69511

Bypass ssl certificate error

$
0
0

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

 


Viewing all articles
Browse latest Browse all 69511

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>