Arduino_ConnectionHandler
Arduino_ConnectionHandler copied to clipboard
Adding SSL selector?
Helpful library -thanks! Would you consider adding a SSL selector in the calls?
Hi @mdelain :wave: Thank you for this suggestion. Can you elaborate a bit more what functionality exactly you would like to see?
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 ;)
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 :(
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.