Skip to content

System.Net.Http.HttpRequestException when trying to send a Get request to "https://api.telegram.org" #1411

Closed Answered by Ellerbach
homostultus39 asked this question in Q&A
Discussion options

You must be logged in to vote

@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:

openssl s_client -connect api.telegram.org:443 -showcerts

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@homostultus39
Comment options

Answer selected by homostultus39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants