There's this request that simply won't work on c# (either RestClient or HttpClient). when I try connecting to the endpoint on RestSharp I get StatusCode 0, and on HttpClient I get this exception:
Authentication failed because the remote party sent a TLS alert: 'HandshakeFailure'.
Funny thing about that is that it works pretty fine on Postman (Yes I tried generating the code from the postman and it still didn't work).
I looked on the postman and it used the TLS 1.2 certificate, then I tried this:
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
still, nothing.
Checked the url, authentication, headers, http verb and everything is OK.
Obs: I can only access this endpoints tru a VPN, does that ring a bell?