Problem with establishing an internet connection | Telit Cinterion IoT Developer Community
January 20, 2020 - 11:31am, 9901 views
Hi.
I am trying to establish a Https GET connection using AT commands. I began by firstly setting up an internet connection profile using the following command. I used the "Configuring an Internet Connection Profile" example for my PLS62-W board ( orange terminal box ).
AT+COPS?+COPS: 0,0,"vodafone UK",0
OK
AT+CREG?+CREG: 0,1
AT+CGREG?+CGREG: 0,0
AT+CGDCONT=1,"IP","wap.vodafone.co.uk"OK
AT^SGAUTH=1,1,"wap","wap"OK
AT^SICA=1,1ERROR
I keep getting an error after everytime I try to activate PDP context 1.
Can you please highlight to me why this error keeps occuring?
Also, is there any way to know if I have an internet connection, and that the apn I enter is valid?
Thanks
Kav
AT+CGDCONT=1,"IP","wap.vodafone.co.uk"OK
AT+CGATT=1OK
AT^SICA=1,1OK
AT^SISS=1,srvType,"Http"OK
AT^SISS=1,conId,"1"OK
AT^SISS=1,address,"https://www.Amazon.com"OK
AT^SISS=1,cmd,"get"OK
AT^SISO=1OK
^SIS: 1,0,2200,"Http www.Amazon.com:443"
^SIS: 1,0,200,"INT:error in sendRequest SSL: underlaying socket closed"
Problem is now trying to access other websites outputs either ^SIS: 2,0,200,"Certificate failed verification" or ^SIS: 3,0,24,"Host not found".
Thanks in advance
Hello,
I have consulted with my collegues that for AWS you should upload this certificate to the module after conversion to .bin:
https://www.amazontrust.com/repository/SFSRootCAG2.cer
As for other websites you need root certificates for all the https websites that you want to visit to be loaded on the module.
Regards,
Bartłomiej
Hi,
Can you please clarify on how to upload the above certificate to the module.
I will only be using AWS for its iot services, so I am not concerned with accessing other websites
thanks
This one is already in DER format and you can convert it to bin with jseccmd.jar tool.
Hi,
The file that I downloaded from the link you posted above has the file extension ".cer".
https://www.amazontrust.com/repository/SFSRootCAG2.pem
But I have download the PEM version of the SFSRootCAG2 certficate and have converted to DER using open SSL. Then converted it to bin files using jseccmd.jar tool.
I have installed the certificates into the terminal but the error still presists when I try to connect to AWS broker.
AT^SISS=4,srvType,"Http"OK
AT^SISS=4,conId,"1"OK
AT^SISS=4,cmd,"get"OK
AT^SISO=4OK
^SIS: 4,0,200,"Certificate failed verification"
Thanks in advance
AT^SISS=4,srvType,"Http"OK
AT^SISS=4,conId,"1"OK
AT^SISS=4,address,"https://a21xxxxxxxxxxxx-ats.iot.us-west-2.amazonaws.com"OK
AT^SISS=4,cmd,"get"OK
AT^SISO=4OK
^SIS: 4,0,200,"INT:error in sendRequest SSL: underlaying socket closed"
Hello,
I have tested this and it seems that the certificate that the server sends when I open the link from your last log is not exactly the same as from the link from their online documentattion I had seent you in the last post. It's quite weired. So it is probably the best apprach then to first verify what their server really sends. With the proper certificate I can open your link and verify the server cert correctly and TLS handshake is done. After that there's "HTTP-ERR: response: 404" but it'a already on the application layer. I'll send you the certificate and pcap trace on your email so that you could check.
Best regards,
Bartłomiej
Hi,
Would you need my email to do so?
Thanks
I've got your email from your account but it seems to be wrong.
Hi,
Can you please send the files to
Thanks