NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.

CC3100 SSL Demo Application

From Texas Instruments Wiki
Jump to: navigation, search
Cc31xx cc32xx return home.png
Cc31xx return sample apps.png

Overview[edit]

This is a sample application demonstrating how to use the certificate files and establish an SSL connection w/ CC3100. SSL certificates are designed to provide two principles, privacy and authentication. Privacy is achieved by encryption/decryption and authentication is achieved by signature/verification. The certificates must be pre-loaded to the serial-flash. It is possible to flash 5 sets of SSL certificates to the device using the CCS UniFlash utility.

NoteNote: This wiki page is only applicable for CC3100-SDK v1.0.0 and upward releases. For documentation on older SDKs' examples, refer corresponding file in <cc3100-sdk-installation-location>\cc3100-sdk\docs\examples\

Application details[edit]

The application:

  • connects to an open AP
  • gets the server name via a DNS request
  • defines all socket options and points to the CA certificate
  • connects to the server via TCP

Usage[edit]

Prerequisite: This application requires an access-point with internet connectivity

  • Connect the board to a Windows-PC and configure the terminal-program for seeing the logs - CC3100 & CC3200 Terminal Setting has detailed instructions for configuring the terminal-program
  • Download the required certificate file at /cert/google.der on sFLASH using CCS UniFlash utility. For detailed instructions refer to the Uniflash User's Guide in addition to the CA Certificate section of the CC3200 wiki page
  • Edit 'sl_common.h' and update the following parameters for the device to establish connection w/ the access-point
   #define SSID_NAME       "<ap_name>"
   #define SEC_TYPE        <security-type>
   #define PASSKEY         ""
  • Edit 'sl_common.h' and update the following parameters to update the device time
   #define DATE                24
   #define MONTH               7
   #define YEAR                2014
   #define HOUR                17
   #define MINUTE              30
   #define SECOND              0
  • Build and launch the project
  • Application will connect to Google server
  • See the self explanatory logs on the terminal-program's console. On success, below message will be displayed on the terminal
Ssl logs 1.png

Limitations/Known Issues[edit]

  • SSL certificates must be pre-loaded to the serial flash
  • SSL certificates are not encrypted
  • SSL certificates should use .der format
  • Only 5 sets of SSL certificates can be used concurrently

Links[edit]

{{#invoke: Navbox | navbox }} {{#invoke: Navbox | navbox }}

E2e.jpg {{
  1. switchcategory:MultiCore=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article CC3100 SSL Demo Application here.

Keystone=
  • For technical support on MultiCore devices, please post your questions in the C6000 MultiCore Forum
  • For questions related to the BIOS MultiCore SDK (MCSDK), please use the BIOS Forum

Please post only comments related to the article CC3100 SSL Demo Application here.

C2000=For technical support on the C2000 please post your questions on The C2000 Forum. Please post only comments about the article CC3100 SSL Demo Application here. DaVinci=For technical support on DaVincoplease post your questions on The DaVinci Forum. Please post only comments about the article CC3100 SSL Demo Application here. MSP430=For technical support on MSP430 please post your questions on The MSP430 Forum. Please post only comments about the article CC3100 SSL Demo Application here. OMAP35x=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article CC3100 SSL Demo Application here. OMAPL1=For technical support on OMAP please post your questions on The OMAP Forum. Please post only comments about the article CC3100 SSL Demo Application here. MAVRK=For technical support on MAVRK please post your questions on The MAVRK Toolbox Forum. Please post only comments about the article CC3100 SSL Demo Application here. For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article CC3100 SSL Demo Application here.

}}

Hyperlink blue.png Links

Amplifiers & Linear
Audio
Broadband RF/IF & Digital Radio
Clocks & Timers
Data Converters

DLP & MEMS
High-Reliability
Interface
Logic
Power Management

Processors

Switches & Multiplexers
Temperature Sensors & Control ICs
Wireless Connectivity