Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Can i read AWS certificates from a SD CARD?

    Scheduled Pinned Locked Moved FiPy
    fipyaws mqttawscertificatesd card
    1 Posts 1 Posters 30 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N Offline
      nervencid
      last edited by

      Hello to all:

      I'm following your tutorial for connect with AWS:

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

      But i changed the lines for load the certificates in order to load them from SD CARD (i replace some words with *****):

      AWS_PORT = 8883
      AWS_HOST = "*******.amazonaws.com"
      AWS_ROOT_CA = "/sd/certificados/AmazonRootCA1.pem"
      AWS_CLIENT_CERT = "/sd/certificados/*****.cert.pem"
      AWS_PRIVATE_KEY = "/sd/certificados/*****.private.key"
      

      Where i load from the SD card INSTEAD of flash memory (i have problems to accesing via FileZilla), but when i load the code an try to run it i get this error:

      Socket create error: CA file not found
      

      Besides i'm detecting the file from SD card:

      #Listamos el contenido dentro de 'sd'
      sdContent = os.listdir('/sd/certificados')
      print('Leyendo contenido de la micro SD: ', sdContent)
      

      And i get:

      Leyendo contenido de la micro SD:  ['start.ps1', 'VeriSign-Class 3-Public-Primary-Certification-Authority-G5.pem', 'AmazonRootCA1.pem', 'AmazonRootCA3.pem', '*****.cert.pem', '*****.private.key', '******.public.key']
      

      Where i clearly access to sd card, but the board can't find the certificate.

      How can i load certificates from SD card?

      Thank you and sorry for the english

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • 1 / 1
      • First post
        Last post

      Pycom on Twitter

      Pycom