OPCDA.NET-UA
createCertificate(String,UInt16,UInt16,String) Method
See Also  Send Feedback
OpcDaNetUaOption.Net4 Assembly > Opc.Ua.Client Namespace > ConfigUtils Class > createCertificate Method : createCertificate(String,UInt16,UInt16,String) Method

cfgFilename
The path name of the UA configuration file.
keyLen
Certifica key length, 2048 or 4096
hashLen
Certificate encryption algorithm, 0 for SHA1, 1 for SHA256
userAccount

Glossary Item Box

Create the application certificate.

Syntax

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

Parameters

cfgFilename
The path name of the UA configuration file.
keyLen
Certifica key length, 2048 or 4096
hashLen
Certificate encryption algorithm, 0 for SHA1, 1 for SHA256
userAccount

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.