Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding SSL selector? #29

Open
mdelain opened this issue Apr 2, 2020 · 4 comments
Open

Adding SSL selector? #29

mdelain opened this issue Apr 2, 2020 · 4 comments
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@mdelain
Copy link

mdelain commented Apr 2, 2020

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

@per1234 per1234 added the type: enhancement Proposed improvement label Apr 2, 2020
@aentinger
Copy link
Contributor

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

@mdelain
Copy link
Author

mdelain commented May 8, 2020

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 ;)

@DavidDeeds
Copy link

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 :(

@mdelain
Copy link
Author

mdelain commented Aug 4, 2020

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.

@per1234 per1234 added the topic: code Related to content of the project itself label May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

4 participants