I am trying to communicate with AWS.
I was able to communicate with AWS using the HL7692 module. I am using inbuilt TLS support of the HL7692 module.
But in this approach, I am writing my private key into the HL7692 module. Since anyone can tap the HL module lines are tap my private key, I don’t want to write my private key into the HL module.
To solve that I will do encryption and decryption within my firmware. For this, I need to open a socket and send encrypted data through it to AWS.
- How can I open a socket in this use case?
- Is there is any example code that I can refer to? (I am trying to use mbedtls)
- Is there is any other better approach for this?