-->
Page 1 of 1

Where to put private key when MQTT + AWS IOT

PostPosted: Sat Jun 10, 2017 9:10 pm
by computer_freak
I'm using NodeMCU on a Wemos D1 Mini Pro. I want to send the value of a DHT11 sensor to the Amazon AWS IoT platform. I have a custom build that includes the net and tls (1.2) module.

Amazon's MQTT broker needs a certificate and a private key when you are connecting.

The certificate can be stored by using tls.cert.verify() but where do I store the private key?

Re: Where to put private key when MQTT + AWS IOT

PostPosted: Mon Jun 12, 2017 4:04 pm
by marcelstoer
computer_freak wrote:Amazon's MQTT broker needs a certificate and a private key when you are connecting.


I believe NodeMCU MQTT only supports user/pw authentication.

computer_freak wrote:The certificate can be stored by using tls.cert.verify()


I doubt that this would be used by the MQTT module.

Re: Where to put private key when MQTT + AWS IOT

PostPosted: Tue Jun 13, 2017 5:33 am
by computer_freak
Thanks, I will shift my solution in a different direction then.