Storing aws certs to spiffs

pksher
Posts: 5
Joined: Tue Jun 25, 2019 6:23 am

Storing aws certs to spiffs

Postby pksher » 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.

jcsbanks
Posts: 305
Joined: Tue Mar 28, 2017 8:03 pm

Re: Storing aws certs to spiffs

Postby jcsbanks » Fri Jul 12, 2019 9:45 am

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.

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Storing aws certs to spiffs

Postby Ritesh » Sat Jul 13, 2019 9:54 am

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.
Regards,
Ritesh Prajapati

pksher
Posts: 5
Joined: Tue Jun 25, 2019 6:23 am

Re: Storing aws certs to spiffs

Postby pksher » Mon Jul 15, 2019 5:26 am

Hi Ritesh

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

Ritesh
Posts: 1383
Joined: Tue Sep 06, 2016 9:37 am
Location: India
Contact:

Re: Storing aws certs to spiffs

Postby Ritesh » Mon Jul 15, 2019 8:23 am

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.
Regards,
Ritesh Prajapati

Who is online

Users browsing this forum: No registered users and 106 guests