Quantcast
Viewing all articles
Browse latest Browse all 1794

OPC-UA service result - Could not create a certificate via a proxy - by: mihaela.chirita

Hi,

I am facing some problems with creating the certificate for an Excel Application which should be used on several PC's.
I was trying to set the ApplicationName as described on your documentation (see bellow)

Dim ClientConfiguration As EasyUAClientConfiguration

Private Sub Workbook_Open()
Set ClientConfiguration = New EasyUAClientConfiguration
ClientConfiguration.SharedParameters.EngineParameters.ApplicationParameters.ApplicationName = "QualityOPC-Ua"

Call InitializeSettingData
End Sub

I understand that I should write a small install that will generate the certificate for my excel app; I've been trying - till now whitout success, to make a .bat file or .js that sets the parameters needed, like for example:

var EasyUAClientConfig = new ActiveXObject("OpcLabs.EasyOpc.UA.EasyUAClientConfiguration");

EasyUAClientConfig.SharedParameters.EngineParameters.ApplicationParameters.ApplicationCertificateSubject = "QualityOPC-Ua";
EasyUAClientConfig.SharedParameters.EngineParameters.ApplicationParameters.ApplicationName = "QualityOPC-Ua";
EasyUAClientConfig.SharedParameters.EngineParameters.ApplicationParameters.ApplicationUriString = "urn:br-automation/BR/UA/EmbeddedServer";
EasyUAClientConfig.SharedParameters.EngineParameters.ApplicationParameters.ProductUriString = "QualityOPC-Ua";

var EasyUAClient = new ActiveXObject("OpcLabs.EasyOpc.UA.EasyUAClient");
EasyUAClient.Install();

If you can maybe please provide some quick solution that will work it will be very appreciate!

Thank you,
Mihaela

Viewing all articles
Browse latest Browse all 1794

Trending Articles