I have the following C# code, constructing an https call with a custom certificate. When using Tls 1.1, the call works fine. When using Tls 1.2 the call breaks. I using curl
Shouldn't you specified the handler's SslProtocols property?
SslProtocols
Try adding this line after hander definition:
hander
handler.SslProtocols = SslProtocols.Tls12;