The message is currently "The '{0}' encryption policy is not supported on this platform." rather than, e.g. "The 'NoEncryption' encryption policy is not supported on this platform."
Commit migrated from https://github.com/dotnet/corefx/commit/
e282c38afc12c2ebeb2b411c186758e8a25fa743
// let it pass.
break;
default:
- throw new PlatformNotSupportedException(SR.net_encryptionpolicy_notsupported);
+ throw new PlatformNotSupportedException(SR.Format(SR.net_encryptionpolicy_notsupported, credential.Policy));
}
SafeSslHandle sslContext = Interop.AppleCrypto.SslCreateContext(isServer ? 1 : 0);