---
title: "[From QnA]Adding Certificate file"
url: "https://maker.wiznet.io/forum/9527"
markdown_url: "https://maker.wiznet.io/forum/9527/md"
type: "Forum topic"
category: "Wireless"
author: "ssekim"
created: "2013-09-11T02:34:51+09:00"
last_activity: "2017-05-04T08:29:57+09:00"
language: "en"
views: 451
replies: 1
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# [From QnA]Adding Certificate file

## Question

Asked by ssekim on 2013-09-11 in Wireless.

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

## Replies

### Reply 1 by ssekim, 2013-09-11

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]

---

Source: https://maker.wiznet.io/forum/9527
