4.8.0.0R6
Software Development Kit
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
secure_http_client

Detailed Description

The secure_http_client module demonstrates using the HTTP Client to create a POST transaction to a website, and print the response to the serial port.

To use it:

  1. Create a credential with the name httpbin
  2. Find the root certificate presented by httpbin.org with openssl: openssl s_client -showcerts -connect httpbin.org:443
    • Copy and past the last certificate in the chain (the root) including the lines –BEGIN CERTIFICATE– and –END CERTIFICATE– into the Certificate box of the httpbin credential created in step 1
    • Configure Line 1 to Protocol HTTPS Client

An alternative approach, if you do not want to install a certificate (say, to avoid configuring multiple devices), is to use the certificate authority directly. This technique can be used by disabling the USE_INSTALLED_CERTIFICATE define.

Built it from project "secureHttpClientDemo"