| Electronic Components Datasheet Search |
|
AN4683 Datasheet(PDF) 18 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4683 Datasheet(HTML) 18 Page - STMicroelectronics |
|
18 / 31 page ![]() Demonstration package AN4683 18/31 DocID027745 Rev 1 Project/examples: contained here are the certificates and configuration files for test examples. The examples folder contains four test examples for creating a TLS secure connection between the SPWF01Sxxx module (client) and a remote server: • Example 1: TLS Client with Mutual authentication. The client, server and CA use ECC authentication (Section 3.3). • Example 2: TLS Client with one-way authentication. The server and CA use RSA-2048 authentication (Section 3.2) • Example 3: Gmail SMTP server access with Anonymous negotiation (Section 3.5). • Example 4: Xively example with Anonymous negotiation (Section 3.6) 3.2 Wi-Fi module setup This section describes the essential steps for setting up the SPWF01Sxxx module to enable the TLS features. A complete list of AT commands, including a detailed description of the use of the commands, are contained in (see [2] in References). To couple the SPWF01Sxxx module with a Wi-Fi access point (SSID, WPA-PSK passphrase) providing a connection to the Local Area Network (LAN) and to the Internet, these are the necessary AT commands: AT+S.SCFG=wifi_mode,0 AT+S.SCFG=wifi_priv_mode,2 AT+S.SSIDTXT=<SSID> AT+S.SCFG=wifi_wpa_psk_text,<WPA PSK passphrase> AT+S.SCFG=wifi_mode,1 AT&W AT+CFUN=1 Once the module is connected to the access point, it is ready to open a secure socket. Notice that, due to memory limitations, the SPWF01Sxxx module allows the opening of one single secure socket at a time; i.e. if you want to open a new secure socket, you must first close any open one. 3.3 Example 1: TLS Client with mutual authentication This first example implements a TLS connection supporting mutual authentication. The client, server and CA use EC cipher. Before running this example, the SPWF01Sxxx (client) must be connected to the Wi-Fi LAN as illustrated in Section 3.2 and OpenSSL must be installed on the PC (acting as server). For testing purposes, OpenSSL-1.0.1i has been used as TLS Server. Documentation and installation instructions are available on the OpenSSL website (see [12] in References). The IP addresses of the client and server are automatically assigned by the network router. To start the server, open a command prompt in the folder Project/Examples/Example1 and run this line: openssl s_server -cert server_cert.pem -key server_key.pem -CAfile root_ca_of_client.pem -Verify 2 -verify_return_error -accept <port> |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |