HUAWEI MU509-b HSDPA LGA Module
SSL Application Guide
Configure SSL
Issue 01 (2014-10-10)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
9
3
Configure SSL
Before opening an SSL socket and exchanging data through secure or normal socket,
the following steps need to be performed:
Initialize SSL library
Enable secure CyaSSL channel
Configure secure socket
Manage certificate
3.1 Initialize SSL Library
Before opening a secure socket and exchanging data through it, the CyaSSL library
needs to be initialized. Once SSL service task is created, CyaSSL library is
initialized internally and a CyaSSL context is created.
3.2 Enable Secure CyaSSL Channel
The first step to be done in order to exchange data through an SSL socket is to
enable the secure socket.
This can be done using the AT command AT^SSLEN:
AT^SSLEN=<SSL_id>,<Enable>[,<Encode_ok>]
Where:
<SSL_id>:
must be set to 1, for security socket ID available.
<Enable>: indicates the desired status. 0 indicates to disable socket; 1 indicates
to enable socket.
<Encode_ok>: indicates encode type for AT^SSLRX and AT^SSLTX commands
(optional, it will take the value as 1 by default).
Without entering this command, any attempt to set SSL parameters by means of
an SSL command fails.
Example
Enable SSL socket 1: