-
I have mqtts working with my mqtt endpoint callback client with other authentication methods, but not client_cert with the tools broker. The docs don't yet cover this authentication method, only the basic mqtts here:
I looked at the client_cli app and I noticed that it was setting these:
I made these additions to the client context used to connect. I'm not sure if I still need to set the username to "cid1" or if it being the CN is all that is required. But I still get this error either way:
I'm using the certs in your test directory. The CN of the client cert shows as "cid1" and I have it in my auth_file as:
Can you describe the proper way to configure the client side for client_cert authentication? I feel I'm missing something basic in the configuration. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Check (and run) this test. async_mqtt/test/system/st_mqtts_connect.cpp Line 230 in 77c19ef The broker is spawned as a child process and the broker read the following files: |
Beta Was this translation helpful? Give feedback.
Check (and run) this test.
async_mqtt/test/system/st_mqtts_connect.cpp
Line 230 in 77c19ef
The broker is spawned as a child process and the broker read the following files:
https://github.com/redboltz/async_mqtt/blob/77c19ef126793cb9a801430e33e1c1ce3aa16198/test/system/st_auth.json
https://github.com/redboltz/async_mqtt/blob/77c19ef126793cb9a801430e33e1c1ce3aa16198/test/system/st_broker.conf