Visual Basic (Usage) | ![]() |
---|---|
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.Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x