EasyUA Reference
CreateApplicationCertificate(String,UInt16,UInt16,String) Method
See Also  Send Feedback
EasyUA Assembly > Advosol.EasyUA Namespace > ConfigUtils Class > CreateApplicationCertificate Method : CreateApplicationCertificate(String,UInt16,UInt16,String) Method

cfgFilename
The path name of the UA configuration file.
keyLen
Certifice 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

Creates an application certificate in the store according the application configuration.

Syntax

Visual Basic (Usage)Copy Code
Dim cfgFilename As String
Dim keyLen As UShort
Dim algorithm As UShort
Dim userAccount As String
Dim value As X509Certificate2
 
value = ConfigUtils.CreateApplicationCertificate(cfgFilename, keyLen, algorithm, userAccount)
C# 
public static X509Certificate2 CreateApplicationCertificate( 
   string cfgFilename,
   ushort keyLen,
   ushort algorithm,
   string userAccount
)

Parameters

cfgFilename
The path name of the UA configuration file.
keyLen
Certifice 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 2003/2008/2012/2015, .NET4.x

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.