System.Net.Http.HttpRequestException when trying to send a Get request to "https://api.telegram.org" #1411
-
Good day! I encountered this problem, I connect the microcontroller to the network and try to send a get request to the specified address, but the System.Net.Http.HttpRequestException error occurs. The error occurs in the line Maybe I want to do something that can't be done, or maybe I'm just doing something wrong, I don't know... Has anyone encountered a similar problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@homostultus39 which certificate are you using? If none, you'll get an exception! Run the following command to see the cert to use: openssl s_client -connect api.telegram.org:443 -showcerts |
Beta Was this translation helpful? Give feedback.
@homostultus39 which certificate are you using? If none, you'll get an exception!
Keep in mind, there is no certificate store like in Windows, Linux and other OS. You have to specify a certificate for the verification.
Run the following command to see the cert to use: