QuickOPC User's Guide and Reference
WithX509CertificateIdentity Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Extensions Namespace > UAEndpointDescriptorExtension Class : WithX509CertificateIdentity Method
The OPC UA endpoint descriptor.
The name of a certificate file.
The password required to access the X.509 certificate data.
Creates a copy of an endpoint descriptor, with user name identity given by X.509 certificate.
Syntax
'Declaration
 
<ExtensionAttribute()>
<NotNullAttribute()>
Public Shared Function WithX509CertificateIdentity( _
   ByVal endpointDescriptor As UAEndpointDescriptor, _
   ByVal fileName As String, _
   ByVal password As String _
) As UAEndpointDescriptor
'Usage
 
Dim endpointDescriptor As UAEndpointDescriptor
Dim fileName As String
Dim password As String
Dim value As UAEndpointDescriptor
 
value = UAEndpointDescriptorExtension.WithX509CertificateIdentity(endpointDescriptor, fileName, password)
[Extension()]
[NotNull()]
public static UAEndpointDescriptor WithX509CertificateIdentity( 
   UAEndpointDescriptor endpointDescriptor,
   string fileName,
   string password
)
[Extension()]
[NotNull()]
public:
static UAEndpointDescriptor^ WithX509CertificateIdentity( 
   UAEndpointDescriptor^ endpointDescriptor,
   String^ fileName,
   String^ password
) 

Parameters

endpointDescriptor
The OPC UA endpoint descriptor.
fileName
The name of a certificate file.
password
The password required to access the X.509 certificate data.

Return Value

Returns a clone of endpointDescriptor, with the user name identity loaded from the file given by fileName and optionally protected by a password password.
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