Could somebody please clarify the following points …
a. When using the RCM67xx as a client
I would like to be able to POST data from an RCM67xx module to a cloud-based server (probably AWS).
I will be using a http connection secured with TLS v1.2
The data needs to be sent as JSON
I have experimented with the Dynamic C 10.72E https client samples (blocking and non-blocking) and using verbose mode I can see TLS working nicely in most cases.
The sample code imports 4 certificates (provided by Digi as part of the Dynamic C installation).
Are these certificates required ? The code seems to work without them.
Is it necessary for me to create my own certificate and include it in my code to allow my RCM67xx module to identify itself to the AWS server ?
If so, how would I do this ?
I have read about self-signed certificates, and I know that these can be created using openssl, but will this be enough ? Or do I need to embed a certificate from AWS into my client code ?
b. When using the RCM67xx as a server
I have a web server which can be accessed over LAN at a private IP address such as 192.168.0.x or 192.168.1.y
I can access the server from the WAN side using port forwarding.
The web server is currently http only.
Is it possible to force the web server to use https i.e. can we get the padlock icon to appear in the browser ?
I can see from the examples that Dynamic C supports importing certificates and I know that v10.72E supports TLS v1.2.
I have experimented with the https examples, but they seem to focus on using the RCM67xx as a client.
I cannot find a https web server example.
What are the steps required to implement a https web server, and what are the limitations when doing so ?
Many thanks for any help