HUAWEI MU509-b HSDPA LGA Module
SSL Application Guide
Contents
Issue 01 (2014-10-10)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
4
Contents
1 Introduction.................................................................................................................................... 5
1.1 Scope ............................................................................................................................................... 5
1.2 Audience ........................................................................................................................................... 5
1.3 CyaSSL ............................................................................................................................................ 5
2 Preliminary Operations ................................................................................................................ 6
2.1 IP Configuration ................................................................................................................................ 6
2.2 Configuring or Activating Context ..................................................................................................... 6
2.3 SSL ................................................................................................................................................... 7
2.3.1 Cipher Suites ........................................................................................................................... 8
2.3.2 Certificates ............................................................................................................................... 8
3 Configure SSL ................................................................................................................................ 9
3.1 Initialize SSL Library ......................................................................................................................... 9
3.2 Enable Secure CyaSSL Channel ..................................................................................................... 9
3.3 Configure CyaSSL Socket .............................................................................................................. 10
3.4 Manage Certificate ......................................................................................................................... 10
4 Work with SSL ............................................................................................................................. 18
4.1 Open a Secure Socket ................................................................................................................... 18
4.2 Socket Connection Status .............................................................................................................. 19
4.3 Exchange Data Through a Secure Socket ..................................................................................... 20
4.3.1 Transmit Data ........................................................................................................................ 20
4.3.2 Receive Data ......................................................................................................................... 20
4.4 Close Socket .................................................................................................................................. 21
5 SSL AT Commands ..................................................................................................................... 22
6 SSL Error Codes ........................................................................................................................... 23
7 Abbreviations ............................................................................................................................ 24