OPC Studio User's Guide and Reference
ServerCertificateByteArray Property (UAEndpointDescriptor)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA Namespace > UAEndpointDescriptor Class : ServerCertificateByteArray Property
The encoded application instance certificate issued to the server.
Syntax
'Declaration
 
<CanBeNullAttribute()>
<DefaultValueAttribute("")>
Public Property ServerCertificateByteArray As Byte()
'Usage
 
Dim instance As UAEndpointDescriptor
Dim value() As Byte
 
instance.ServerCertificateByteArray = value
 
value = instance.ServerCertificateByteArray
[CanBeNull()]
[DefaultValue("")]
public byte[] ServerCertificateByteArray {get; set;}
[CanBeNull()]
[DefaultValue("")]
public:
property array<byte>^ ServerCertificateByteArray {
   array<byte>^ get();
   void set (    array<byte>^ value);
}
Remarks

The server certificate is needed to establish the secure channel communication if signing or encryption is to be used, and you do not want the services from the discovery service set (GetEndpoints) be used to retrieve the server certificate (for performance reason, or because the server does not support it).

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