ssl - 如何通过 SSL/TLS 连接 Thingsboard 和 Thingsboard 物联网网关?
问题描述
我需要一些帮助,通过 TLS 1.2 安全连接将 Thingsboard IoT 网关与我的 Thingsboard 实例连接起来。
Thingsboard 和 IoT 网关在不同的机器上运行。Thingsboard 配置为仅接受 TLS 1.2 安全连接。
我按照文档 ( https://thingsboard.io/docs/iot-gateway/getting-started/ )中的“入门”部分开始配置 IoT 网关。这以如下错误消息结束:
2019-02-13 15:20:24,796 [main] ERROR o.t.g.s.gateway.MqttGatewayService - Unable to connect to ThingsBoard. Connection timed out after [10000] milliseconds
在 GitHub 上阅读了一些问题,我发现可能必须对密钥库文件进行特定配置。目标 Thingsboard 服务器正在使用 Let's Encrypt 证书。在我的 JAVA cacerts 密钥库中,包含 ISRG Root X1 证书。物联网网关不会使用这个密钥库吗?我是否必须为 IoT 网关提供专用的密钥库文件?
查看配置页面(https://thingsboard.io/docs/iot-gateway/configuration/)我仍然有很多问题。我从未使用过密钥库文件,因此我不知道必须将哪些证书添加到密钥库文件以及如何完成。
这是我当前的 tb-gateway.yml配置:
server:
# Server bind address
address: "0.0.0.0"
# Server bind port
port: "9090"
# Check new version updates parameters
updates:
# Enable/disable updates checking.
enabled: "${UPDATES_ENABLED:true}"
gateways:
tenants:
-
label: "IoT Community"
reporting:
interval: 60000
persistence:
type: file
path: storage
bufferSize: 1000
connection:
host: "thingsboard host address"
port: 8883
retryInterval: 3000
maxInFlight: 1000
security:
accessToken: "token"
remoteConfiguration: true
extensions:
-
id: "http"
type: "HTTP"
extensionConfiguration: http-config.json
有人可以给我比 Thingsboard 文档更详细的解释吗?
问候,本
解决方案
推荐阅读
- python-3.x - 我的函数参数如何确定返回几个嵌套函数中的哪一个?
- git - 为什么 Sourcetree 不支持在 Git-flow 分支名称中使用“/”?
- java - 为什么 Web 服务和代理客户端不连接?
- reactjs - React 的上下文自动更新是正常的行为吗?
- python - 如何在 Python 的不同文件中导入文件夹文件及其类?
- d3.js - D3js 路径:添加敏感区
- influxdb - 通过 shell 脚本和 CURL 插入测量失败
- vue.js - 在新选项卡中打开路由器视图?
- python - 使用 Python 3.7 和 set_authorizer 方法出现“未授权”错误
- angular - 如何使用 NgbModal 仅以角度关闭当前打开的模态?