[From QnA]Adding Certificate file

How can I add a certificate file using <AT+TCERTADD> and <AT+TCERTDEL> commands?

Here is Certificate and SSL example (17.172.xxx.65 is a Apple server.).
Apple SSL Server requires some certificate file.

Step1) Delete Certificate Files

[quote]AT+TCERTDEL=rootca
AT+TCERTDEL=usercert
AT+TCERTDEL=userkey
[/quote]If there is no cert-file, WizFi210 can reply some error.
So, you can ignore error response.

Step2) Add Certificate File

[quote]AT+TCERTADD=rootca,0,1273,0
[OK]
OK
AT+TCERTADD=usercert,0,1413,0
[OK]
OK
AT+TCERTADD=userkey,0,1191,0
[OK]
OK
[/quote]
If there is already the certificate file in WizFi210-flash, you should not issue above commands.

Step3) AP Association

[quote]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]
[/quote]
Step4) SSL Connect

[quote]AT+NCLOSEALL
[OK]
AT+NCTCP=17.172.xxx.65,2195
[CONNECT 0]

[OK]
AT+SSLOPEN=0,rootca,usercert,userkey
[OK]
[/quote]