fail to load CA certificate #15414
Unanswered
kohenro19
asked this question in
Using MicroPython
Replies: 3 comments 1 reply
-
as converting CA certificate form .pem to .der, the error became like this
This means that the authentication fail ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thank you so much for giving me the advice. Although I added the function to sync ntp like this, the error is still same def sync_time():
try:
print('Synchronizing time...')
ntptime.settime()
print('Time synchronized!')
# UTC時刻を取得
utc_time = utime.time()
# JSTに補正
jst_time = utc_time + JST_OFFSET
jst_tuple = utime.localtime(jst_time)
print('Current JST time:', jst_tuple)
except Exception as e:
print('Failed to synchronize time:', e)
if __name__ == "__main__":
connect_to_wifi.connect()
sync_time()
~
|
Beta Was this translation helpful? Give feedback.
0 replies
-
As soon as I generated SAS token by vscode, I tried to connect pico to azure iot, but got the same error code(5) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to connect Raspberry Pi Pico W(MicroPython v1.23.0) to Azure Iot Hub but cannot make it.
As the error blow shown, I fail to load the CA certicate
Would you share the sample code to load CA certificate of the latest version of ssl.py ?
This is the source code which happen the error.
I downloaded CA certificate from https://cacerts.digicert.com/DigiCertGlobalRootG2.crt.pem
the .py file and the CA certificate are in a same directory.
Beta Was this translation helpful? Give feedback.
All reactions