OPC Studio User's Guide and Reference
AcceptAnyCertificate Property (CertificateAcceptancePolicy)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Security Namespace > CertificateAcceptancePolicy Class : AcceptAnyCertificate Property
Determines whether any certificate will be accepted, even if a certificate validation error occurs.
Syntax
'Declaration
 
<DataMemberAttribute()>
Public Property AcceptAnyCertificate As Boolean
'Usage
 
Dim instance As CertificateAcceptancePolicy
Dim value As Boolean
 
instance.AcceptAnyCertificate = value
 
value = instance.AcceptAnyCertificate
[DataMember()]
public bool AcceptAnyCertificate {get; set;}
[DataMember()]
public:
property bool AcceptAnyCertificate {
   bool get();
   void set (    bool value);
}

Property Value

The default value of this property is False.

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