Page 1 of 1

approve HTTPS dummy certificate in C#

Posted: Thu Jun 17, 2021 11:17 am
by Bernd Welter
Hi there,

not sure whether this is the best idea of today, but here's how I managed to make a c# application using the HTTPS Url of a server (activated through server.xml):

Code: Select all

ServicePointManager.ServerCertificateValidationCallback = (a, b, c, d) => true;
This works fine with xServer2 but of course ignoring a verification shall only be applied in an environment where you trust the server...

Bernd