QuickOPC User's Guide and Reference
CreateCsr Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.Application Namespace > AbstractEasyUAClientApplication Class : CreateCsr Method
Name of file containing the private key.
Password to the private key.
Domain names to be included within the CSR.
Infrastructure. Create a certificate signing request (CSR).
Syntax
'Declaration
 
<NotNullAttribute()>
Protected MustOverride Function CreateCsr( _
   ByVal privateKeyFileName As String, _
   ByVal privateKeyPassword As String, _
   ByVal domainNames As IEnumerable(Of String) _
) As Byte()
'Usage
 
Dim instance As AbstractEasyUAClientApplication
Dim privateKeyFileName As String
Dim privateKeyPassword As String
Dim domainNames As IEnumerable(Of String)
Dim value() As Byte
 
value = instance.CreateCsr(privateKeyFileName, privateKeyPassword, domainNames)

Parameters

privateKeyFileName
Name of file containing the private key.
privateKeyPassword
Password to the private key.
domainNames
Domain names to be included within the CSR.

Return Value

An array of bytes representing the CSR.
Exceptions
ExceptionDescription
The OPC UA operation has failed.
Remarks

This method may only be called when SupportsCreatingCsr is true.

Requirements

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

See Also