How to reference a common name inside a client certification in server.Events? #87
-
Dear, great developers! This product is extremely clean and neat code, also easy to understand. Thank all of the developers for your effort. I've looked around some documents and tested this product. And after reading almost the code of this product, I could not find how to access a common name in the certificate at Currently, I've created a management system of IoT devices using AWS IoT and I would like to move all to a self-managed MQTT server from AWS. Looks Mochi MQTT server is the best for my purpose. The current devices use the TLS and provide the client certificates for each device to be identified what devices are accessed. I know MQTT defines other authentication methods on the layer itself, however, we wanted to manage all devices by the certificates. Now I'm looking around |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
How about instead of trying to do it in the EstablishFunc set up a VerifyPeerCertificate function on the Server's TLSConfig?
Also, I'd be really interested in hearing about the reasons that helped you to decide to spin your own solution intsead of using AWS IoT? Either here or could I contact you off list? |
Beta Was this translation helpful? Give feedback.
-
looks like it is also available in |
Beta Was this translation helpful? Give feedback.
-
@RangelReale Client.Net.conn is currently not exported, but I can change it to be exported if that would be beneficial for everyone. Let me know what you think 👍🏻 |
Beta Was this translation helpful? Give feedback.
-
@RangelReale Client.Net.Conn is now exported as of v2.1.3 - let me know if this helps |
Beta Was this translation helpful? Give feedback.
How about instead of trying to do it in the EstablishFunc set up a VerifyPeerCertificate function on the Server's TLSConfig?
Also, I'd be really interested in hearing about the reasons that helped you to decide to spin your own solution intsead of using AWS IoT? Either here or could I contact you off list?