Closed jwindhager closed 3 years ago
Another URL that doesn't work: www.arduino.cc
The original URL in the example sketch (arduino.cc) responds with an HTTP 301 as expected. Other URLs, e.g. www.google.com, work as expected.
Again, adding the certificates using client.setUserRoots(...);
doesn't help. Also tried to replace all USECPRF
AT commands in GSMClient.cpp
and GSMSSLClient.cpp
with USECPRF=0
, without success.
AT+CMEE=2
doesn't yield any additional information (only "ERROR" after the USOCO
AT command, see above).AT+USECMNG=4,0,"Baltimore_CyberTrust_Root"
+USECMNG: 4,0,"Baltimore_CyberTrust_Root","acb694a59c17e0d791529bb19706a6e4"
Update: seems to be an issue with the modem's TLS firmware. I now use the non-SSL GSMClient
with OPEnSLab-OSU's SSLClient and this works for my application. Also, I noticed that the modem's firmware is quite outdated. Unfortunately, u-blox doesn't publicly release firmware updates (not sure if this would help, though)...
Heard back from Arduino support:
www.arduino.cc was recently put behind a Cloudflare proxy, which requires more advanced TLS ciphers that are not supported by the default TLS stack of the GSM module which works with most servers and is the recommended choice. However, when it does not support a particular server, the BearSSL approach here can be used.
Looks like I did not check the proxy ciphers...
Hello
I'm trying to connect to https://mattermost.dqbm.uzh.ch using the GsmSSLWebClient example sketch, with
GSM gsmAccess(true)
for debugging. However, the connection fails at theUSOCO
AT command without further details:At first, I assumed this could be a problem with the QuoVadis CA, so I added the respective root certificates using
client.setUserRoots(...);
at the beginning ofsetup()
. This didn't work, so I tried replacing that command withclient.setCertificateValidationLevel(0);
, which didn't help either.The board is well-powered with a fully charged 2400mAh LiPo and a suitable USB PSU. HTTPS requests to other sites (google.com, arduino.cc) work without any problem. Also, from experience, I would expect the board to hang if there is a problem related to the power supply.
One thing I noticed is that the SSL certificate for https://mattermost.dqbm.uzh.ch contains umlauts. Could this cause a problem with the SARA-U201?
I also tried mimicking the request on my workstation:
I noticed that, without forcing HTTP/1.1 with
--http1.1
, the server responds with HTTP/2. Could this be a problem?Thanks