Arduino_ConnectionHandler icon indicating copy to clipboard operation
Arduino_ConnectionHandler copied to clipboard

Adding SSL selector?

Open mdelain opened this issue 4 years ago • 4 comments

Helpful library -thanks! Would you consider adding a SSL selector in the calls?

mdelain avatar Apr 02 '20 08:04 mdelain

Hi @mdelain :wave: Thank you for this suggestion. Can you elaborate a bit more what functionality exactly you would like to see?

aentinger avatar Apr 29 '20 14:04 aentinger

erf - very unclear indeed... sorry guys

I was trying to connect using TLS on MKR1500. I faced 2 problems: first, the library does not provide a way to select an SSL client; second, I needed an additional RSA certificate that is not included in the basic certs set of the MKRNB library.

I think the first point should be easy to solve. On the latter point, in the cross-board philosophy of the ConnectionHandler library, it could be handy to rely on a common method that could provision additional/custom certs in the radio module. That way the code could be portable from one board to another.

On MKR NB, I added in my sketch a few lines of code copied from the MKRNB library in order to add the missing cert. Now it works ;)

mdelain avatar May 08 '20 14:05 mdelain

I would love this functionality! I can't work out how to add another certificate (for app.powerbi.com ) to the MKR1500 board to make SSL work :(

DavidDeeds avatar Aug 02 '20 11:08 DavidDeeds

I would love this functionality! I can't work out how to add another certificate (for app.powerbi.com ) to the MKR1500 board to make SSL work :(

Actually, I've copied some of the MKRNB library code inside my sketch to add the needed certificate. You can have a look at my code, inspired from here in the library. You'll need to prep your certificate to match the format.

However, it's only working for u-blox modems (the same code is working perfectly on MKR GSM 1400, also using a u-blox module). And as you can notice, I'm not using the ConnectionHandler library, but directly the board's libraries.

mdelain avatar Aug 04 '20 14:08 mdelain