Replies: 2 comments
-
I can't really provide advice, but the SSL implementation in MicroPython is tricky. I suggest you look at how I'm wrapping the socket and do the same. The |
Beta Was this translation helpful? Give feedback.
-
I noticed that ha. The syntax is a bit rigid, so are the cert requirements, etc. I did ultimately end up sorting it out with the help of Damien George. Very thankful for the guidance. I missed a small piece of syntax and my socket was actually not properly being wrapped in ssl, which led to the bizarre errors I was experiencing. More info below if you are at all curious. In any event, thank you for the reply here, and great work on microdot. If I needed something full featured I would for sure use it. My needs for this particular project are much lighter weight. Thanks! |
Beta Was this translation helpful? Give feedback.
-
So microdot is great, but it is super large for my needs. I was hoping to write my own socket code and wrap it in SSL socket. MIcrodots ssl implementation works perfectly fine, I am just trying to emulate it in my own code.
Both of the below bodies of code suffer from the same issue. I tried to use the ssl context class to wrap an ssl socket. Then on my laptop im trying to hit the esp webserver. Anytime I try I get the below error. Hoping that maybe @miguelgrinberg or someone else has run into this and can perhaps offer some guidance on how I can resolve this. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions