QuickOPC User's Guide and Reference
AcceptAnyCertificate Property (_UACertificateAcceptancePolicy)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Engine.ComTypes Namespace > _UACertificateAcceptancePolicy Interface : AcceptAnyCertificate Property
Determines whether any certificate will be accepted, even if a certificate validation error occurs.
Syntax
'Declaration
 
Property AcceptAnyCertificate As Boolean
'Usage
 
Dim instance As _UACertificateAcceptancePolicy
Dim value As Boolean
 
instance.AcceptAnyCertificate = value
 
value = instance.AcceptAnyCertificate
bool AcceptAnyCertificate {get; set;}
property bool AcceptAnyCertificate {
   bool get();
   void set (    bool value);
}
Remarks

When this property is true, it effectively bypasses an important security feature. Use this value only for testing and development purposes, or if your application does not require the certificate check.

This method or property does not throw any exceptions, aside from execution exceptions such as System.Threading.ThreadAbortException or System.OutOfMemoryException.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also