Page 1 of 1

AT+CIPSTART closes on some websites when using SSL

Posted: Sat Feb 25, 2017 10:56 am
by reidkersey
I have been running into an interesting problem. When loading some websites, after sending the AT+CIPSTART we receive CLOSED. Other websites work just fine. Websites that have been tested working are http://www.posttestserver.com and google.com.

Does anyone know what is going wrong, or how to fix this?

The following is what we are sending, and receiving, when the code is not working.

Code: Select all

ATE0\r\n
--> ATE0\r\r\n\r\nOK\r\n
AT\r\n
--> \r\nOK\r\n
AT+CWMODE=3\r\n
--> \r\nOK\r\n
AT+CWQAP\r\n
--> \r\nOK\r\n
AT+CWJAP="<ssid>","<password>"\r\n
--> WIFI CONNECTED\r\n
--> WIFI GOT IP\r\n
--> \r\nOK\r\n
AT+CIPSSLSIZE=4096\r\n
--> \r\nOK\r\n
AT+CIPSTART="SSL","app.sniffergps.com",443,1000\r\n
--> CLOSED\r\n\r\nOK\r\n
AT+CIPSEND=170\r\n
--> link is not valid\r\n\r\nERROR\r\n


Thanks,
Reid

Re: AT+CIPSTART closes on some websites when using SSL

Posted: Mon Feb 27, 2017 8:47 pm
by ESP_Xutao
Hi:
Our AT Framework can be used in HTTP, not HTTPs. If using HTTP, you should add some code in your project, and you can refer to the demo code as below:
https://github.com/espressif/esp8266-no ... Demo_https

Re: AT+CIPSTART closes on some websites when using SSL

Posted: Thu Feb 07, 2019 1:21 pm
by patrick1957
How can I use AT command to access https website? Use SSL instead of TCP for AT+CIPSTART command?

Thks
Qiang

Re: AT+CIPSTART closes on some websites when using SSL

Posted: Thu Feb 14, 2019 6:03 pm
by Her Majesty
I guess so. Maybe SSL certificates are also needed.