-
Notifications
You must be signed in to change notification settings - Fork 46
Description
When I run examples/NBSSLWebClient/NBSSLWebClient.ino, the simple example for connecting to an HTTPS/SSL web server, it only works on a few sites.
It works on:
It does not work on:
- caddyserver.com
- nginx.org
- letsencrypt.org
- google.com
- arduino.cc
- www.nytimes.com
- ieeexplore.ieee.org
- vg.no
If i enable debugging mode (change line 28
from NB nbAccess;
to NB nbAccess(true)
), I get the following error:
00:33:42.216 -> AT+USOSEC=0,1,0
00:33:42.216 -> OK
00:33:42.406 -> AT+USECPRF=0,0,1
00:33:42.406 -> OK
00:33:42.616 -> AT+USOCO=0,"letsencrypt.org",443
00:33:42.909 -> ERROR
00:33:43.016 -> +UUSORD: 0,0
00:33:43.016 -> +UUSORD: 0,0
00:33:43.016 -> +UUSOCL: 0
00:33:43.125 -> AT+USOCL=0
00:33:43.125 -> ERROR
00:33:43.125 -> connection failed
For webhook.site, which works fine, I get
00:34:17.097 -> AT+USOSEC=0,1,0
00:34:17.097 -> OK
00:34:17.282 -> AT+USECPRF=0,0,1
00:34:17.282 -> OK
00:34:17.504 -> AT+USOCO=0,"webhook.site",443
00:34:18.797 -> OK
00:34:18.797 -> connected
I tried to change NBClient.cpp line 128
from MODEM.send("AT+USECPRF=0,0,1");
to MODEM.send("AT+USECPRF=0,0,0");
like Issue 90 suggested, but this did not work.
I don't have any clue what the issue can be about. webhook.site
uses Let's encrypt and Nginx, but the web site of Let's encrypt and Nginx (which I guess use their own newest technology) does not work. It might be that webhook.site uses an older Nginx version, but this is hard to verify. aftenposten.no
uses Let's Encrypt and Varnish and has a u89-varnish-abo-01
header. But vg.no
, another major Norwegian news site, owned by the same parent company, also uses Varnish (it has a u89-varnish-01
header), but this site does not work. I also tired to see if their was any commonality between the certificate issuer or the signature algorithm for the sites that worked, but I always find an other sites with the same factor that did not work.