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.