Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HELP] Unable to connect to a OPCUA server with Basic256Sha256 #1677

Open
andersenthomas98 opened this issue Feb 13, 2025 · 1 comment
Open
Assignees

Comments

@andersenthomas98
Copy link

I am not able to connect to a OPCUA server with Basic256Sha256 security policy due to the error BadCertificateInvalidUri(2148990976)

According to this old issue I might be missing an application uri, although I cannot find it documented anywhere. However, adding the uri to the OPCUA connector configuration does not seem to help either.

Here is my OPCUA connector configuration

{
  "server": {
    "url": "opc.tcp://*****",
    "timeoutInMillis": 5000,
    "scanPeriodInMillis": 3600000,
    "enableSubscriptions": false,
    "subCheckPeriodInMillis": 60000,
    "showMap": true,
    "security": "Basic256Sha256",
    "identity": {
      "type": "cert.PEM",
      "cert": "/thingsboard_gateway/config/credentials/kepserver/tbgw_cert.pem",
      "privateKey": "/thingsboard_gateway/config/credentials/kepserver/tbgw_key.pem",
      "mode": "SignAndEncrypt",
      "username": "******",
      "password": "******"
    },
    "pollPeriodInMillis": 60000
  },
  ...
}

Error:

Image

Versions:

  • Docker: 27.3.1
  • Thingsboard IoT Gateway version: 3.6.3
@andersenthomas98
Copy link
Author

FYI, I am trying to connect to KepserverEx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants