Thales' cellular IoT products business is now part of Telit Cinterion, find out more.

You are here

Telit Cinterion ELS62-W AWS certification | Telit Cinterion IoT Developer Community

July 24, 2023 - 11:57am, 478 views

Hi,

I'm trying to use the ELS62-W to communicate with the AWS IoT core.

I followed the document "TLS Certificate Management EXSx2", and "Data transfer methods - AWS Enrollment" to write the AWS root CA1 and device key pairs to the module. 

The exact command I use to upload the cert / keys were:

java -jar cmd_ipcertmgr.jar -mode is_cert -cmd writeCert -certfile AmazonRootCA1.cer -certIndex 1 -sigType NONE -serialPort COM21 -serialSpd 115200

java -jar cmd_ipcertmgr.jar -mode is_cert -cmd writeCert -certfile device_cert.der -keyfile private_key.der -certIndex 0 -sigType NONE -serialPort COM21 -serialSpd 115200

After doing this, one strange observation is the read cert result from 

at^sbnr="is_cert"

^SBNR: 0, size: "861", issuer: "/OU=Amazon Web Services O=Amazon.com Inc. L=Seattle ST=Washington C=US", serial number: "4BE109B827624F0DA2FE9718A08BC107F5827A19", subject: "/CN=AWS IoT Certificate", signature: "sha256RSA", thumbprint algorithm: "sha1", thumbprint: "7FE73092731CA3416317258231E3EC6700F35474", expiry date: "2049,12,31"
^SBNR: 1, size: "861", issuer: "/OU=Amazon Web Services O=Amazon.com Inc. L=Seattle ST=Washington C=US", serial number: "4BE109B827624F0DA2FE9718A08BC107F5827A19", subject: "/CN=AWS IoT Certificate", signature: "sha256RSA", thumbprint algorithm: "sha1", thumbprint: "7FE73092731CA3416317258231E3EC6700F35474", expiry date: "2049,12,31"

Both locations 0 and 1 are the device cert. Location 1 should be the Amazon Root CA1.

When I try to open the MQTT connection for the very first time, I got an error message:

^SIS: 1,0,24,"Host not found"

(however the module is online, I can ping to a host using ping command, and the MQTT broker is alive too)

Then I closed the connection and reconnect again. I got a different message:

+CIEV: is_cert,1,"/C=US/O=Amazon/CN=Amazon RSA 2048 M01","*************************","/CN=*.iot.ap-northeast-1.amazonaws.com","sha256RSA","sha1","*********************"

+CIEV: is_cert,1,"/C=US/O=Amazon/CN=Amazon Root CA 1","077312380B9D6688A33B1ED9BF9CCDA68E0E0F","/C=US/O=Amazon/CN=Amazon RSA 2048 M01","sha256RSA","sha1","2AD974A775F73CBDBBD8F5AC3A49255FA8FB1F8C"

+CIEV: is_cert,1,"/C=US/ST=Arizona/L=Scottsdale/O=Starfield Technologies, Inc./CN=Starfield Services Root Certificate Authority - G2","067F944A2A27CDF3FAC2AE2B01F908EEB9C4C6","/C=US/O=Amazon/CN=Amazon Root CA 1","sha256RSA","sha1","06B25927C42A721631C1EFD9431E648FA62E1E39"

+CIEV: is_cert,1,"/C=US/O=Starfield Technologies, Inc./OU=Starfield Class 2 Certification Authority","A70E4A4C3482B77F","/C=US/ST=Arizona/L=Scottsdale/O=Starfield Technologies, Inc./CN=Starfield Services Root Certificate Authority - G2","sha256RSA","sha1","9E99A48A9960B14926BB7F3B02E22DA2B0AB7280"

^SIS: 1,0,77,"The certificate does not exist"

I feel like this is a certificate issue, any suggestions on how to do this correctly?

Thanks,