Skip to content

Provide example of mutual TLS implementation #56

Open
@jjauzion

Description

@jjauzion

Hi, the broker I use (EMQx) is using mutual TLS, so I have to provide client certificates.

I didn't find a way in doing so so far with this lib.

I saw in the doc how to use SSL/TLS (extract below) but no indication on how I could pass certificate to the connection client.

// To connect with SSL/TLS:
// 1) Change WiFiClient to WiFiSSLClient.
// 2) Change port value from 1883 to 8883.
// 3) Change broker value to a server with a known SSL/TLS root certificate 
//    flashed in the WiFi module.

I tried using the SSLClient lib but with no success so far

Is mutual TLS possible ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions