OPCDA.NET-UA
Configuration Helper Methods
Send comments on this topic.
OPCDA.NET-UA > Configuration > Configuration Helper Methods

Glossary Item Box

The class Opc.Ua.ClientDA.ClientUtils contains Configuration and Certificate management helper methods for applications that need to handle the management internally.

Configuration and certificate changes usually require Administrator privileges. If implemented within the client application then is best isolated into a configuration mode so that the regular client functionality doesn't need Administrator rights.

 

Configuration Helper Methods:

static public string GetUaConfigurationFileName();

static public ApplicationConfiguration GetUaConfiguration(string configFileName);

static public int CreateDefaultConfigurationFile(string cfgFilename, string appName);

 

 

Certificate Helper Methods:

static public X509Certificate2 CreateApplicationCertificate(string cfgFilename, ushort keyLen, ushort algorithm, string userAccount);

static public X509Certificate2 GetApplicationCertificate(string cfgFilename);

static public void CertificateAddAccount(X509Certificate2 certificate, string accountName);

static public X509Certificate2 ImportServerCertificate(string configFileName, string certificatePath);

static public void SaveCertificateAsTrusted(ApplicationConfiguration UaConfig, X509Certificate2 certificate);

 

Copyright © 2020 Advosol Inc. All Rights Reserved.