Salamek / huawei-lte-api

API For huawei LAN/WAN LTE Modems
GNU Lesser General Public License v3.0
376 stars 92 forks source link

Exception has occurred: SSLError #127

Closed ryanbarlow97 closed 2 years ago

ryanbarlow97 commented 2 years ago

image

ryanbarlow97 commented 2 years ago

image

I have been trying to "update" my certificate but I can't seem to do it. I don't really know what else to do?

I have the Huawei 5G CPE Pro 2 (H122-373)

The error is on this line:

image

Salamek commented 2 years ago

@ryanbarlow97 In that case, you need to ignore SSL, see this example:

https://github.com/Salamek/huawei-lte-api/blob/fdfcedd72fa5b5fcf1fe50857d20eca045839666/examples/ignore_ssl_check.py#L21-L33

ryanbarlow97 commented 2 years ago

Alright, thanks, I sorta fixed it by just rewriting the API without realising this was a thing. Would it be possible to use this API to change bands?

Salamek commented 2 years ago

@ryanbarlow97 see

ryanbarlow97 commented 2 years ago

This doesn't let me change bands, I want to set it so my router will only look at bands 1, 20, and 28.

Thanks

Salamek commented 2 years ago

@ryanbarlow97 ah band, sorry i read profile for some reason lol,see:

https://github.com/Salamek/huawei-lte-api/blob/fdfcedd72fa5b5fcf1fe50857d20eca045839666/huawei_lte_api/api/Net.py#L16