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 Mary
I guess so. Maybe SSL certificates are also needed.

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

Posted: Thu Feb 13, 2020 3:15 am
by prashant
I am facing same issue.
I have my own configured Virtual Server with SSL.
I am using ESP-01 module.
Instead of CONNECT, getting CLOSED without any response

AT+CIPSTART="SSL","demo.ambiconnect.com",443
CLOSED

OK

But it is working fine for other sites.
AT+CIPSTART="SSL","www.google.com",443

CONNECT

OK

Keep Alive Settings are also Good.
Any issue on the Server side related to configurations ?

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

Posted: Fri Feb 28, 2020 10:37 am
by Her Mary
AT+CIPSSLSIZE=4096 maybe enlarge the SSL buffer can help.