SiPy -> AWS Device Example - CA file not found



  • Hi,

    Im following the official tutorial here:

    https://docs.pycom.io/chapter/tutorials/all/aws.html

    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:

    0_1517516383356_77c5c140-c8ea-4289-a790-4e98f508c80a-image.png

    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.

    Thanks,

    Jon



  • @jonnyboy said in SiPy -> AWS Device Example - CA file not found:

    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.



  • Hi,

    Yes, they should be please see screenshot of FTP connection to /flash/cert

    0_1517575628653_e91b0221-2aef-4ecc-8d19-e8cf16b6e939-image.png

    Thanks



  • This post is deleted!


  • @jonnyboy said in SiPy -> AWS Device Example - CA file not found:

    file not found

    Hi,
    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/")
    

 

Hello World?

Pylife on Kickstarter - November 2018








Back Us On Kickstarter >

Pycom on Twitter