我使用mosquitto作为PST模式的MQTT经纪人。我的配置如下:
psk_hint hint
psk_file psk_file
psk_file:
zhimatest:3132333435363738
首先它可以正常工作。但是在工作了大约10个小时后,就会出现以下日志。我还测试了之前正常工作的mosquitto_pub和mosquitto_sub。并且发生了同样的“ psk identity not found ”错误。
重启mosquitto后,一切都还可以。
1471917009: OpenSSL Error: error:1408B0DF:SSL routines:SSL3_GET_CLIENT_KEY_EXCHANGE:psk identity not found
1471917009: Socket error on client <unknown>, disconnecting.
1471917009: Client connection from 127.0.0.1 failed: error:1408B0DF:SSL routines:SSL3_GET_CLIENT_KEY_EXCHANGE:psk identity not found.
1471917009: Client connection from 127.0.0.1 failed: error:1408B0DF:SSL routines:SSL3_GET_CLIENT_KEY_EXCHANGE:psk identity not found.
1471917009: Client connection from 127.0.0.1 failed: error:1408B0DF:SSL routines:SSL3_GET_CLIENT_KEY_EXCHANGE:psk identity not found.
1471917009: Client connection from 127.0.0.1 failed: error:1408B0DF:SSL routines:SSL3_GET_CLIENT_KEY_EXCHANGE:psk identity not found.