OPC Studio User's Guide and Reference
AllowUserAcceptCertificate Property (UACertificateAcceptancePolicy)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Engine Namespace > UACertificateAcceptancePolicy Class : AllowUserAcceptCertificate Property
Determines whether the interactive user can be prompted to and accept a server certificate that has failed other validation checks.
Syntax
'Declaration
 
<DataMemberAttribute()>
<DefaultValueAttribute(True)>
Public Property AllowUserAcceptCertificate As Boolean
'Usage
 
Dim instance As UACertificateAcceptancePolicy
Dim value As Boolean
 
instance.AllowUserAcceptCertificate = value
 
value = instance.AllowUserAcceptCertificate
[DataMember()]
[DefaultValue(true)]
public bool AllowUserAcceptCertificate {get; set;}
[DataMember()]
[DefaultValue(true)]
public:
property bool AllowUserAcceptCertificate {
   bool get();
   void set (    bool value);
}

Property Value

If set to false (the default), no dialogs will be displayed, and the invalid certificate will be rejected.
Remarks

Setting this property to true has effect only when the current process is running in user interactive mode.

In order to obtain or modify this parameter for server instance certificates, access the UAClientServerEngineParameters.CertificateAcceptancePolicy property of EasyUASharedParameters.EngineParameters property of OpcLabs.EasyOpc.UA.EasyUAClientCore.SharedParameters. Alternatively, you can override the certificate acceptance policy for a specific endpoint by setting it to a non-null value in OpcLabs.EasyOpc.UA.UAEndpointDescriptor.CertificateAcceptancePolicy.

In order to obtain or modify this parameter for HTTPS certificates, access the UAClientEngineParameters.HttpsCertificateAcceptancePolicy property of EasyUASharedParameters.EngineParameters property of OpcLabs.EasyOpc.UA.EasyUAClientCore.SharedParameters.

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