arduino-libraries / MKRGSM

GNU Lesser General Public License v2.1
54 stars 51 forks source link

Add a way to include more root certs to be used #132

Open sergiocastrogom opened 3 years ago

sergiocastrogom commented 3 years ago

Hi team!

I have been facing issues using the GsmSSLWebClient example to connect to some servers via HTTPS. I suspect that the cause of my connectivity issue could be related to the fact that the certs used by my server is not listed in https://github.com/arduino-libraries/MKRGSM/blob/master/src/utility/GSMRootCerts.h. This list does include "DigiCert_High_Assurance_EV_Root_CA", however the server I am trying to connect to (webhooks.mongodb-realm.com) uses "DigiCert Global Root CA".

Is there a way for me to manually add such cert? if not, would it be possible to add such functionality?

Thanks a lot in advance for your help.

tommirintala commented 2 years ago

I have the same problem -- but I would need to add LetsEncrypt -root certificate.

Hugocourr commented 2 years ago

i made a tutorial for that here: https://github.com/arduino-libraries/MKRGSM/issues/151 here you go :) have fun!