OPEnSLab-OSU / SSLClient

🔒Add SSL/TLS functionality to any Arduino library
https://openslab-osu.github.io/SSLClient/index.html
GNU General Public License v3.0
155 stars 47 forks source link

Mutual TLS Authentification - Read Certificates from a Filesystem #82

Open SJDickinsonSDS opened 2 years ago

SJDickinsonSDS commented 2 years ago

Hi, I'm using your library to connect to AWS's IoT Core using MQTT over TLS.

I'd like to be able to store my certificates in a filesystem, namely SPIFFS and read them from there before passing them to SSLParameters::. My reading of the documentation and source code suggests that isn't really possible as SSLParameters:: needs to be called before a filesystem would normally be mounted in setup(). It seems this would limit the library to hard-coded certificates and thus make certificate exchange difficult?

I could be missing something, is there a way to store certificate in a filesystem and use them with this library?

bakadave commented 1 year ago

I have the same question.

scsPEp commented 1 year ago

I think following issue already has the solution for your problems. At least it worked for me.

https://github.com/OPEnSLab-OSU/SSLClient/issues/34