Page 1 of 1

Storing aws certs to spiffs

Posted: Fri Jul 12, 2019 5:26 am
by pksher
Hi I am using eclipse with esp32. I want to store aws certs on spiffs, kindly tell me the procedure how to do it?

I am following thing shadow example in esp-idf but instead of using embedded certs as in the example, I want to use spiffs.

Your suggestions will be appreciated.

Re: Storing aws certs to spiffs

Posted: Fri Jul 12, 2019 9:45 am
by jcsbanks
Not done with spiffs, but have with nvs. Using a blob instead of a string avoids a length limit you might hit with some certificates and keys.

However you obtain them, you can pass a pointer to their location the same, unless there is some shortcut using spiffs.

Re: Storing aws certs to spiffs

Posted: Sat Jul 13, 2019 9:54 am
by Ritesh
pksher wrote:
Fri Jul 12, 2019 5:26 am
Hi I am using eclipse with esp32. I want to store aws certs on spiffs, kindly tell me the procedure how to do it?

I am following thing shadow example in esp-idf but instead of using embedded certs as in the example, I want to use spiffs.

Your suggestions will be appreciated.
Hello,

Di you need any directory level support to store certificates using SPIFFS components? Do you want to change certificate contents runtime or just want to read it?

If So, Then I suggest to create SPIFFS partition from your partition.csv file and create SPIFFS image with certificates to store into flash memory.

So that you can easily read those certificates and can use as per your requirements.

Re: Storing aws certs to spiffs

Posted: Mon Jul 15, 2019 5:26 am
by pksher
Hi Ritesh

I am not changing certs at runtime, just want to read those certs.

Re: Storing aws certs to spiffs

Posted: Mon Jul 15, 2019 8:23 am
by Ritesh
pksher wrote:
Mon Jul 15, 2019 5:26 am
Hi Ritesh

I am not changing certs at runtime, just want to read those certs.
If So, Then I suggest to create SPIFFS partition from your partition.csv file and create SPIFFS image with certificates to store into flash memory.

So that you can easily read those certificates and can use as per your requirements.