MicroPython_ESP32_psRAM_LoBo icon indicating copy to clipboard operation
MicroPython_ESP32_psRAM_LoBo copied to clipboard

CA, Cert, and Key

Open luke-unifymonitor opened this issue 7 years ago • 2 comments

Hi,

I'm following this article to allow for Just In Time Provisioning of my IOT Device/Thing:

https://aws.amazon.com/blogs/iot/setting-up-just-in-time-provisioning-with-aws-iot-core/

The call to mqtt requires a ca, cert, and key file to be supplied.

$ mosquitto_pub --cafile root.cert --cert deviceCertAndCACert.crt --key deviceCert.key -h .iot.us-east-1.amazonaws.com -p 8883 -q 1 -t foo/bar -I anyclientID --tls-version tlsv1.2 -m "Hello" -d

However, looking at https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/mqtt#create-mqtt-instance-object I can only see a single cert Certificate file name property.

Am I able to point these extra credentials into MQTT Module?

Apologies if this is a silly question, I'm pretty new to SSL/X.509 etc..

Many thanks for the library and any help offered,

Luke.

luke-unifymonitor avatar Jul 26 '18 11:07 luke-unifymonitor

Sorry for the late reply, I was on a vacation.

Only cert is supported for now, the support for mutual authentication (cert+key) should be added in the next couple of weeks.

loboris avatar Aug 16 '18 16:08 loboris

Hi, has this been resolved? Or is it possible to port the MQTT C module of the AWS FreeRtos implementation?

MagnusKriel avatar Mar 03 '19 10:03 MagnusKriel