approve HTTPS dummy certificate in C#

Deals with generic topics such as logging, framework and so on. If you are not sure where to place your topic just put it here.
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2572
Joined: Mon Apr 14, 2014 10:28 am
Contact:

approve HTTPS dummy certificate in C#

Post 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
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply