Network data transmission, need to ensure the integrity of data, confidentiality, and the ability to authenticate the sender of the data. The advent of the SSL (Secure Socket Layer) protocol provides a guarantee for data encryption and other issues. So in the use of wiznet network products, how to connect with a certified SSL server to achieve data encryption and transmission? This article provides answers for you.
Typically, connect <most SSL server>, you do not need <client certificate> (client Authentication), and <a few SSL server> request <a Client Certificate>.
For example, to connect <apple push Server>, you need Apple to authorize you <a Client certificate>.
Take a look at this example of a certified SSL connection using WIZFI210.
Step 1) Add the authentication file
At+tcertdel=rootca
At+tcertdel=usercert
At+tcertdel=userkey
at+tcertadd=rootca,0,1273,0
[OK]
Ok
at+tcertadd=usercert,0,1413,0
[OK]
Ok
at+tcertadd=userkey,0,1191,0
[OK]
Ok
Step 2) AP Connection and setup time
At+wd
[OK]
At+ndhcp=1
[OK]
at+wwpa=12345678
[OK]
At+wa=wizfidemoap
IP SubNet Gateway
192.168.3.101:255.255.255.0:192.168.3.1
[OK]
At+settime=04/09/2013,13:11:11
[OK]
Step 3) SSL connection
At+ncloseall
[OK]
at+nctcp=17.172.xxx.xx,2195
[CONNECT 0]
[OK]
At+sslopen=0,rootca,usercert,userkey
[OK]
For <at+tcertdel>,<at+tcertadd and <at+sslopen>, refer to WizFi210 programming instructions.
For certification file types and conversions, please refer to the following website.
http://www.openssl.org/
by Steve
How to connect a certified SSL server with WizFi210