MQTT如何配置SSL #3
Answered
by
wendy512
meggls2016
asked this question in
Q&A
-
|
SpringBoot使用MQTT如何在Yaml中配置SSL |
Beta Was this translation helpful? Give feedback.
Answered by
wendy512
Sep 18, 2024
Replies: 1 comment
-
|
请参考以下配置: # 实例配置
instance:
mqtt-client-1:
host: tcp://youhost:1883
qos: 1
username: admin
password: public
autoReconnect: true
cleanSession: true
keepAlive: 60
connectionTimeout: 30
timeToWait: 60000
# ssl配置
ssl:
enabled: true
# 密钥路径,支持classpath:
keyStore: /path/key.jks
# 密钥类型
keyStoreType: JKS
# 密钥密码
keyStorePassword: password |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
meggls2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请参考以下配置: