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

Added TLS support for Modbus TCP Connection #1083

Merged
merged 1 commit into from
Mar 24, 2023
Merged

Added TLS support for Modbus TCP Connection #1083

merged 1 commit into from
Mar 24, 2023

Conversation

samson0v
Copy link
Contributor

@samson0v samson0v commented Mar 24, 2023

Added TLS support for Modbus TCP Connection (both Gateway as master and Gateway as a slave)
Example configuration for Gateway as master:

{
  "master": {
    "slaves": [
      {
        "host": "127.0.0.1",
        "port": 5021,
        "type": "tcp",
        "method": "socket",
        "tls": {
          "certfile": "./cert.ca",
          "keyfile": "./client.key",
          "password": "some_password",
          "server_hostname": "localhost"
        },
        "timeout": 35,
        ...

Example configuration for Gateway as a slave:

"slave": {
  "type": "tcp",
  "security": {
    "certfile": "./cert.ca",
    "keyfile": "server.key",
    "password": "some_password",
    "reqclicert": false
  },
  "host": "127.0.0.1",
  ...

@imbeacon imbeacon merged commit 4e80769 into thingsboard:master Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants