SiPy -> AWS Device Example - CA file not found
Im following the official tutorial here:
I have setup the AWS device and downloaded the certificates, then placed them into ther /cert folder but I am getting the error:
Socket create error: CA file not found Socket send error 128
My certificates have a different naming convention to those in the example.
The example is:
# AWS general configuration AWS_PORT = 8883 AWS_HOST = 'aws_host_url' AWS_ROOT_CA = '/flash/cert/aws_root.ca' AWS_CLIENT_CERT = '/flash/cert/aws_client.cert' AWS_PRIVATE_KEY = '/flash/cert/aws_private.key'
My certificates are called:
and my code is:
# AWS general configuration AWS_PORT = 8883 AWS_HOST = 'xxxxxxxx.iot.eu-west-1.amazonaws.com' AWS_ROOT_CA = '/flash/cert/VeriSign-Class 3-Public-Primary-Certification-Authority-G5.pem' AWS_CLIENT_CERT = '/flash/cert/b06548fb65-public.pem.key' AWS_PRIVATE_KEY = '/flash/cert/b06548fb65-private.pem.key'
Please can someone help, i'm out of ideas.
CA file not found
Can you try formatting the file system and re-uploading the files again, you can do this by running the following from the REPL:
import os os.mkfs('/flash')
It could be the the file system has become corrupt, it might be worth trying to upload the files via USB if at all possible.
Yes, they should be please see screenshot of FTP connection to /flash/cert
This post is deleted!
file not found
Can you confirm that the certificate files were actually pushed to your device? You can do this by running the following in the REPL:
import os os.listdir("/flash/cert/")