Can i read AWS certificates from a SD CARD?
-
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 foundBesides 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
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