ServerSDK - Automatically trust all clients?

Questions regarding the use of the .NET SDK 2.0 for Server or Client development or integration into customer products ...

Moderator: uasdknet

Post Reply
Sebastian
Full Member
Full Member
Posts: 6
Joined: 24 Aug 2017, 10:06

ServerSDK - Automatically trust all clients?

Post by Sebastian »

Hi,
how can I get the Server SDK to automatically accept all clients and not rejecting them?
In the C++ SDK there is an option for this called "AutomaticallyTrustAllClientCertificates" which should do the trick, but is there any equivalent option in the .NET SDK?

Thanks!

User avatar
Support Team
Hero Member
Hero Member
Posts: 3064
Joined: 18 Mar 2011, 15:09

Re: ServerSDK - Automatically trust all clients?

Post by Support Team »

Hello,

You have to implement the ApplicationInstance.UntrustedCertificate EventHandler. If you are setting the Accept property always to true, all certificates are accepted.
Please see:
ApplicationInstance.UntrustedCertificate
UntrustedCertificateEventArgs
Best regards
Unified Automation Support Team

Sebastian
Full Member
Full Member
Posts: 6
Joined: 24 Aug 2017, 10:06

Re: ServerSDK - Automatically trust all clients?

Post by Sebastian »

Thanks, that was exactly what I was looking for.

Post Reply