The following code throws "PlatformNotSupportedException" 'Operation is not supported on this platform"
It is a NET standard library (tried compiling against 1.4 and 2.0) that is referenced by a .NET 4.6.1 project that runs as a web app.
var handler = new HttpClientHandler();
handler.SslProtocols = SslProtocols.Tls12;
Why does Tls12 throw this exception and what is a workaround?