OPCDA.NET-UA
CreateApplicationCertificate Method
See Also  Send Feedback
OpcDaNetUaOption.Net4 Assembly > Opc.Ua.ClientDA Namespace > ClientUtils Class : CreateApplicationCertificate Method

cfgFilename
The path name of the UA configuration file.
keyLen
Certifica key length, 2048 or 4096
algorithm
Certificateencryptioon algorithm, 0 for SHA1, 1 for SHA256
userAccount
null or name of the user account that needs to be given private key read access.

Glossary Item Box

Create the application certificate.

Syntax

Visual Basic (Declaration) 
Public Shared Function CreateApplicationCertificate( _
   ByVal cfgFilename As String, _
   ByVal keyLen As UShort, _
   ByVal algorithm As UShort, _
   ByVal userAccount As String _
) As X509Certificate2
C# 
public static X509Certificate2 CreateApplicationCertificate( 
   string cfgFilename,
   ushort keyLen,
   ushort algorithm,
   string userAccount
)

Parameters

cfgFilename
The path name of the UA configuration file.
keyLen
Certifica key length, 2048 or 4096
algorithm
Certificateencryptioon algorithm, 0 for SHA1, 1 for SHA256
userAccount
null or name of the user account that needs to be given private key read access.

Return Value

The created certificate for information purposes.

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2008/2012/2016, .NET 4.7.2

See Also

Copyright © 2020 Advosol Inc. All Rights Reserved.