SIMCom_3G_SSL_Application Note_V1.10



Similar documents
SIM800 Series_IP_Application Note_V1.02

SIM800 Series_SSL_Application Note_V1.00

SIM800 Series_SSL_Application Note_V1.01

GSM. Quectel Cellular Engine. HTTP Service AT Commands GSM_HTTP_ATC_V1.2

Quectel Cellular Engine

Quectel Cellular Engine

SIM900 Eclipse environment install Application Note_V1.00

GSM. Quectel Cellular Engine. GSM TCPIP Application Notes GSM_TCPIP_AN_V1.1

SIM800 Series_FM_Application Note_V1.00

Quectel Cellular Engine

SIM900_Custom Application Building Tutorial_Application Note_V1.00

TCPIP Application Note for WCDMA Solution V2.0

U10. Quectel Cellular Engine. Video Call Application Notes. U10_ Video_Call_AN_V1.0

(SMTP/POP3) Application Note

QuecLocator Application Note

SMS Application Note. SIM5360_SMS_Application_Note_V0.01

M72. Quectel Cellular Engine. EVB User Guide M72_EVB_UGD_V1.0

Quectel Cellular Engine

Using AT commands to control TCP/IP stack on SM5100B-D modules

L16. Quectel GNSS Engine. EVB User Guide L16_EVB_UGD_V1.0

WCDMA&GSM Module_Extra_Function_for_Network

L10. Quectel GPS Engine. EVB User Guide L10_EVB_UGD_V1.00

Architecture and Data Flow Overview. BlackBerry Enterprise Service Version: Quick Reference

Revision: 002 Date: September Porting Guide From EdSoft V3.10 to WIPSoft V2.00

Quectel Cellular Engine

Deployment Guide. AX Series with Oracle Application Server

M95 Dual SIM Application Notes

Deployment Guide Microsoft IIS 7.0

HP Device Manager 4.6

Experian Secure Transport Service

Lab Exercise SSL/TLS. Objective. Requirements. Step 1: Capture a Trace

Deployment Guide. AX Series with Microsoft Office SharePoint Server

Configuring Health Monitoring

CA Nimsoft Monitor. Probe Guide for URL Endpoint Response Monitoring. url_response v4.1 series

Setting Up SSL on IIS6 for MEGA Advisor

User Manual. Onsight Management Suite Version 5.1. Another Innovation by Librestream

Lab Exercise SSL/TLS. Objective. Step 1: Open a Trace. Step 2: Inspect the Trace

EE Easy CramBible Lab DEMO ONLY VERSION EE F5 Big-Ip v9 Local Traffic Management

PrintFleet Enterprise Security Overview

SSL (Secure Socket Layer)

Integration with CA Transaction Impact Monitor

SECURE FTP CONFIGURATION SETUP GUIDE

Thunder ADC for Epic Systems

Deployment Guide. AX Series with Microsoft Exchange Server

Secure Web Appliance. Reverse Proxy

Understanding Slow Start

ezvsp User's Manual ( Version 2.1d ) Sollae Systems Co., Ltd.

DMZ Network Visibility with Wireshark June 15, 2010

Deploying the BIG-IP System with Oracle E-Business Suite 11i

MadCap Software. Upgrading Guide. Pulse

Cape Girardeau Career Center CISCO Networking Academy Bill Link, Instructor. 2.,,,, and are key services that ISPs can provide to all customers.

Configuration Guide BES12. Version 12.3

PRODUCT VERSION: LYNC SERVER 2010, LYNC SERVER 2013, WINDOWS SERVER 2008

Outlook Web Access Guide to Installing Root Certificates, Generating CSR and Installing SSL Certificate

Security IIS Service Lesson 6

Deployment Guide. AX Series with Microsoft Office Communications Server

PrintFleet Enterprise 2.2 Security Overview

Managing Virtual Servers

Xerox FreeFlow Digital Publisher Information Assurance Disclosure. Onsite, Cloud and epublishing Configurations

Chapter 17. Transport-Level Security

FTP Server Configuration

PageScope Enterprise Suite

Smartcard Web Server Enabler Architecture

Using IPM to Measure Network Performance

SSL Enforcer Documentation

ADH8060/8066 GSM/GPRS Module

Configuring Nex-Gen Web Load Balancer

Snare for Firefox Snare Agent for the Firefox Browser

AT Commands Examples. Examples for u-blox GSM/GPRS modules. Application Note. locate, communicate, accelerate. Abstract

Configuration Guide. BES12 Cloud

AG MacOS Standalone Array Client Administration Guide

Transition Networks White Paper. Network Security. Why Authentication Matters YOUR NETWORK. OUR CONNECTION.

Customer Tips. Xerox Network Scanning TWAIN Configuration for the WorkCentre 7328/7335/7345. for the user. Purpose. Background

Sophos Mobile Control Super administrator guide. Product version: 3

Xerox Multifunction Devices. Verify Device Settings via the Configuration Report

Administering the Web Server (IIS) Role of Windows Server

Bubble Code Review for Magento

PaperCut Payment Gateway Module CyberSource Quick Start Guide

Configuration Guide BES12. Version 12.2

EXPLORER. TFT Filter CONFIGURATION

MDM Mass Configuration Tool User s Manual

Remote Access Platform. Architecture and Security Overview

How to configure HTTPS proxying in Zorp 5

Network Configuration Settings

BlackBerry Enterprise Service 10. Secure Work Space for ios and Android Version: Security Note

ipecs Communicator Installation and Operation Guide Please read this manual carefully before operating your set. Retain it for future reference.

Novatel U530 & U630 O2 Branded Datacards Installation instructions for: O2 version of Mobilink Software: Version

How to Make the Client IP Address Available to the Back-end Server

Parallels Business Automation 5.5

Parallels Plesk Panel

DEPLOYMENT GUIDE Version 1.2. Deploying the BIG-IP system v10 with Microsoft Exchange Outlook Web Access 2007

Deployment Guide Oracle Siebel CRM

Data Communication I

How to configure SSL proxying in Zorp 3 F5

Spam Marshall SpamWall Step-by-Step Installation Guide for Exchange 5.5

Setting Up a Kerberos Relay for the Microsoft Exchange 2013 Server DEPLOYMENT GUIDE

µtasker Document FTP Client

Deployment Guide Jan-2016 rev. a. Deploying Array Networks APV Series Application Delivery Controllers with Oracle WebLogic 12c

GS-AN045 S2W UDP, TCP, HTTP CONNECTION MANAGEMENT EXAMPLES

Configuration Guide BES12. Version 12.1

Transcription:

SIMCom_3G_SSL_Application Note_V1.10

Document Title: SIMCom_3G_SSL_Application Note Version: 1.10 Date: Status: Document Control ID: Release SIMCom_3G_SSL_Application Note_V1.10 General Notes SIMCom offers this information as a service to its customers, to support application and engineering efforts that use the products designed by SIMCom. The information provided is based upon requirements specifically provided to SIMCom by the customers. SIMCom has not undertaken any independent search for additional relevant information, including any information that may be in the customer s possession. Furthermore, system validation of this product designed by SIMCom within a larger electronic system remains the responsibility of the customer or the customer s system integrator. All specifications supplied herein are subject to change. Copyright This document contains proprietary technical information which is the property of SIMCom Limited., copying of this document and giving it to others and the using or communication of the contents thereof, are forbidden without express authority. Offenders are liable to the payment of damages. All rights reserved in the event of grant of a patent or the registration of a utility model or design. All specification supplied herein are subject to change without notice at any time. Copyright Shanghai SIMCom Wireless Solutions Ltd. 2013 SIMCom_3G_SSL_Application Note_V1.10 2

Contents 1 Introduction... 5 1.1 Features... 5 2 AT commands... 6 3 Examples... 7 3.1 Bearer Profile... 7 3.2 Start Common Channel Stack...7 3.3 Open Common Channel Session... 7 3.4 Send Small Data...7 3.5 Send Large Data...8 3.6 Receive Data Automatically... 9 3.7 Receive Data Manually...9 3.8 Close Common Channel Session...10 3.9 Stop Common Channel Stack... 10 3.10 Data Mode(Transparent mode)... 10 3.11 Use SSL Certificates and Key Files...11 3.11.1 Download Certificate/Key Files to Module...11 3.11.2 List All Certificate/Key Files in the Module... 11 3.11.3 Delete Certificate/Key Files in the Module...12 3.11.4 Set CA File...12 3.11.5 Set Certificate File... 12 3.11.6 Set Key File...12 3.11.7 Load CA/Certificate/Key Files... 12 3.11.8 Use Certificate/Key Files for Common Channel...13 Appendix... 14 A Related Documents...14 B Terms and Abbreviations...14 SIMCom_3G_SSL_Application Note_V1.10 3

Version History Date Version of change Author 2013-18-01 V1.00 New version songjin 2013-12-27 V1.10 Rewrite using new document template songjin Scope This document presents the AT command of SSL operation and application examples. This document can apply to SIMCom 3G modules, including SIM5218/SIM5215/SIM5216/SIM5320/SIM5310/SIM6320/SIM6216 series modules. SIMCom_3G_SSL_Application Note_V1.10 4

1 Introduction This document presents the AT command of SSL operation for SIMCom 3G modules. 1.1 Features 1. SIMCom 3G series supports SSL certificate and key management AT operation. 2. SIMCom 3G series supports transfer over SSL(common channel/https/ftps/smtps). 3. SIMCom 3G series SSL supports SSL3.0/TLS1.0. SIMCom_3G_SSL_Application Note_V1.10 5

2 AT commands Below is the email associated with AT commands, detailed information please refer to document [1]. Through these AT commands can achieve the following functions. 1) Open common channel session. 2) Close common channel session 3) Send data using common channel 4) Receive data using common channel Command AT+CCHMODE AT+CCHSET AT+CCHSTART AT+CCHSTOP AT+CCHOPEN AT+CCHCLOSE AT+CCHSEND AT+CCHRECV AT+CCHSTATE AT+CCERTDOWN AT+CCERTLIST AT+CSSLCA AT+CSSLCERT AT+CSSLKEY AT+CSSLLOADCK Set data mode or command mode Set send result URC and receive mode. Start common channel stack, also active the PDP context Stop common channel stack, also deactive the PDP context Open common channel session Close common channel session Send data Read data in cache buffer Get the state of common channel stack Download certificate/key files to module List all certificate/key files in module Set CA file Set certificate file Set key file Load the CA/certificate/key files SIMCom_3G_SSL_Application Note_V1.10 6

3 Examples There are some examples to explain how to use these commands. In the "" columns of following tables, input of AT commands are in black, module return values are in blue. 3.1 Bearer Profile AT+CGSOCKCONT=1, IP, apn Configure bearer profile 1 AT+CSOCKSETPN=1 3.2 Start Common Channel Stack Common channel is a set of AT commands which provides common operation for UDP/TCP client/ssl like OPEN/CLOSE/SEND DATA/RECEIVE DATA. AT+CCHSTART Start common channel stack +CCHSTART: 0 3.3 Open Common Channel Session AT+CCHOPEN=0, www.myhttpserver.com,443,2 +CCHOPEN: 0,0 Open common channel session<0>. The red parameter defined in the following: 0-UDP socket 1-TCP client socket 2- SSL client with SSL3.0/TLS1.0 supported(default) 3.4 Send Small Data SIMCom_3G_SSL_Application Note_V1.10 7

AT+CCHSEND=0,88 >GET / HTTP/1.1 Host: www.mywebsite.com User-Agent: MY WEB AGENT Content-Length: 0 Send data +CCHSEND: 0,0 If the AT+CCHSET=1 is set, and all data has been sent, the +CCHSEND URC will be report 3.5 Send Large Data AT+CCHSEND=0,1024 > (data of 1024 bytes) Send data to server AT+CCHSEND=0,1024 > (data of 1024 bytes) AT+CCHSEND? +CCHSEND: 0,10812,1,0 +CCHSEND: 0,0 AT+CCHSEND? +CCHSEND: 0,0,1,0 AT+CCHSEND=1024 > (data of 1024 bytes) Check how many data is left in sending buffer. If the cached data is more than 10K bytes, the program should wait some seconds an check the AT+CCHSEND? again to make sure there is free buffer in module to continue to call AT+CCHSEND=<session_id>,<len>. If the AT+CCHSET=1 is set, and all data has been sent, the +CCHSEND URC will be report Now no data cached in sending buffer. Usually we can continue to send data when the data cached <= 3K bytes. Continue to send data. SIMCom_3G_SSL_Application Note_V1.10 8

AT+CCHSEND=576 > (data of 576 bytes) +CCHSEND: 0,0 AT+CCHSEND? +CCHSEND: 0,0,1,0 If the AT+CCHSET=1 is set, and all data has been sent, the +CCHSEND URC will be report Now no data cached in sending buffer. All data has been sent. 3.6 Receive Data Automatically +CHTTPSRECV: DATA,0,1024 (data of 1024 bytes) +CHTTPSRECV: 0 +CHTTPSRECV: DATA,0,1024 (data of 1024 bytes) +CHTTPSRECV: 0 The +CHTTPSRECV: DATA,<session_id>,<len> will be reported whenever there is data received in automatic mode. +CHTTPSRECV: DATA,0,100 (data of 100 bytes) +CHTTPSRECV: 0 3.7 Receive Data Manually By default, the receive mode is automatic mode. The AT+CCHSET can be used to set the receive mode to manual mode. For example: AT+CCHSET=1,1. This command can only be called before AT+CCHSTART. +CCHEVENT: 0,RECV EVENT AT+CCHRECV? +CCHRECV: LEN,4196,0 There is new data received in cache buffer. Check how many data cached in receiving buffer. SIMCom_3G_SSL_Application Note_V1.10 9

AT+CCHRECV=0,1024 +CCHRECV: DATA,0,1024 (data of 1024 bytes) +CCHRECV: 0 +CCHRECV: 0,RECV EVENT Read all data in cache buffer. Any time, the +CCHRECV: <session_id>,recv EVENT indicates there is received data in cache buffer. AT+CCHRECV=0,1024 +CCHRECV: DATA,0,1024 (data of 1024 bytes) +CCHRECV: 0 +CCHRECV: 0,RECV EVENT AT+CCHRECV=0,100 +CCHRECV: DATA,0,100 (data of 100 bytes) +CCHRECV: 0 3.8 Close Common Channel Session AT+CCHCLOSE=0 Close common channel session<0>. +CCHCLOSE: 0,0 3.9 Stop Common Channel Stack AT+CCHSTOP Stop common channel stack +CCHSTOP: 0 3.10 Data Mode(Transparent mode) AT+CCHMODE=1 AT+CCHSTART Set common channel module to use transparent mode. By default, it is 0(AT command mode). Activate PDP context. SIMCom_3G_SSL_Application Note_V1.10 10

+CCHSTART: 0 AT+CCHOPEN=0,"TCP","www.myhttpserver.com",44 3,2 CONNECT 115200 +++ AT+CCHCLOSE=0 Connect to server. only session<0> is allowed to operate with transparent mode. Sequence of +++ to quit data mode Close session. CLOSED +CCHCLOSE: 0,0 AT+CCHSTOP Deactivate PDP Context +CCHSTOP: 0 3.11 Use SSL Certificates and Key Files 3.11.1 Download Certificate/Key Files to Module AT+CCERTDOWN="mycert.der", 753 >file content of 753 bytes... Download certificate/key files to module 3.11.2 List All Certificate/Key Files in the Module AT+CCERTLIST +CCERTLIST: "ca_cert.der" +CCERTLIST: "client_cert.der" +CCERTLIST: "client_key.der" List all certificate/key files in the module. SIMCom_3G_SSL_Application Note_V1.10 11

3.11.3 Delete Certificate/Key Files in the Module AT+CCERTDELE="client_cert.der" Delete certificate/key files. 3.11.4 Set CA File The following command can be used to set the CA file for current SSL operation, This command can only be used after AT+CHTTPSSTART/AT+CCHSTART/AT+CFTPSSTART: AT+CCERTCA=0, "ca.pem" Set CA File 3.11.5 Set Certificate File The following command can be used to set the certificate file for current SSL operation, This command can only be used after AT+CHTTPSSTART/AT+CCHSTART/AT+CFTPSSTART: AT+CCERTCERT="my_cert.pem",0 Set Certificate File 3.11.6 Set Key File The following command can be used to set the key file for current SSL operation, This command can only be used after AT+CHTTPSSTART/AT+CCHSTART/AT+CFTPSSTART: AT+CCERTKEY=0,"my_key.pem" Set Key File 3.11.7 Load CA/Certificate/Key Files The following command can be used to load the CA/certificate/key files set using AT+CSSLCA/AT+CSSLCERT/AT+CSSLKEY for current SSL operation, This command can only be used after AT+CHTTPSSTART/AT+CCHSTART/AT+CFTPSSTART: SIMCom_3G_SSL_Application Note_V1.10 12

AT+CSSLLOADCK Set Certificate File 3.11.8 Use Certificate/Key Files for Common Channel The AT+CSSLCA/AT+CSSLCERT/AT+CSSLKEY/AT+CSSLLOADCK must be put after +CCHSTART: 0 and before opening any common channel session. AT+CCHSTART Start common channel stack +CCHSTART: 0 AT+CSSLCA=0,"ca_cert.der" AT+CSSLCERT="client_cert.der",0 AT+CSSLKEY="client_key.der" AT+CSSLLOADCK AT+CCHOPEN=0,"www.myhttpserver.com", 443,2 Set the CA. Set the client certificate Set the client key Load the CA/certificate/key files Connect to SSL server. +CCHOPEN: 0,0 AT+CCHCLOSE=0 Close common channel session +CCHCLOSE: 0,0 AT+CCHSTOP Stop common channel stack +CCHSTOP: 0 SIMCom_3G_SSL_Application Note_V1.10 13

Appendix A Related Documents SN Document name Remark [1] SIMCOM_SIM5215_SIM5216_ATC_EN_V 1.24.doc B Terms and Abbreviations Abbreviation FTPS HTTPS SSL FTP over SSL HTTP over SSL Secure Socket Layer SIMCom_3G_SSL_Application Note_V1.10 14

Contact us: Shanghai SIMCom Wireless Solutions Co.,Ltd. Address: Building A, SIM Technology Building, No. 633, Jinzhong Road, Shanghai, P. R. China 200335 Tel: +86 21 3252 3300 Fax: +86 21 3252 2030 URL: www.sim.com/wm SIMCom_3G_SSL_Application Note_V1.10 15