coussej / node-opcua-logger

An OPCUA Client for logging data to InfluxDB! 🔌 🏭
https://www.factry.io
MIT License
179 stars 63 forks source link

Server Rejects Client #48

Closed ajaywazir closed 4 years ago

ajaywazir commented 4 years ago

Hi I am using Matrikon OPC simulation server to test the opc client Here is the console log message

[2020-05-27T16:35:40.091] [INFO] main - Starting Influx OPCUA Logger v2.0.0-alpha, brought to you by FACTRY (www.factry.io) [2020-05-27T16:35:40.094] [INFO] main - Initialising influxClient [2020-05-27T16:35:40.111] [INFO] influx - localhost:8086 responded in 14ms running 1.7.2 [2020-05-27T16:35:40.112] [INFO] main - Initialising buffer [2020-05-27T16:35:40.116] [INFO] main - Connecting OPCUA [2020-05-27T16:35:47.144] [FATAL] main - Error: The connection has been rejected by server, Please check that client certificate is trusted by server. Err = (ERROR in waiting for data on socket ( timeout was = 60000 ms)) at Object.start (C:\TestProjects\NodeTests\OPC\SRC\node-opcua-logger-master\src\opcua.js:64:15) [2020-05-27T16:35:47.147] [INFO] buffer - Persisting membuffer.

Why is certificate rejected by the server?

Ajay

coussej commented 4 years ago

Hi there, you must trust the certificate from the server side. You'll probably find a menu in the matricon OPCUA server configuration where you can select this certificate and trust it.

ajaywazir commented 4 years ago

Thanks. Let me check. If there is no option, how to change to connection without certificates? Thanks Ajay

coussej commented 4 years ago

This also depends on your server settings I believe. You'll find a lot of settings related to authentication and so on in the endpoint configuration.

ajaywazir commented 4 years ago

Thanks Let me try... Ajay

ajaywazir commented 4 years ago

Hi I Got it Working Thanks Ajay