Unable to connect to https #3020
-
I upgraded to mongoose 7 and tried to connect to https with no success. I tried to connect to https://httpbin.org to test it and mg_tls_init says "Failed to load EC private key" the event listener goes as this:
` |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Please see our documentation, and follow the guidelines in our tutorials. You are mixing SMTP, MQTT, and HTTP(S) events. Please follow docs above, run tutorials as they are. and if then you have a problem, please sniff your network (using Wireshark, for example) and observe the traffic. Thank you PS: If you are a paying customer, please contact Support as per contract, so we can speed things up. |
Beta Was this translation helpful? Give feedback.
-
I can't help you if you don't read the docs I link nor do the things I suggest |
Beta Was this translation helpful? Give feedback.
Please see our documentation, and follow the guidelines in our tutorials.
https://mongoose.ws/documentation/tutorials/http/http-client/
https://mongoose.ws/documentation/tutorials/tls/
You are mixing SMTP, MQTT, and HTTP(S) events.
I can't follow your code (we don't check user code for errors, BTW), from the top of my head, looks like somehow either you've setup for mutual/two-way authentication, or your server is setup for that, and you don't seem to be providing your private credentials.
I can't find the error text you say you get, at least not in HEAD. "Mongoose 7" does not exist, there are 16 releases + HEAD.
I don't see how one of the four possible mg_tls_init()s can issue an error l…