NSUrlSessionHandler.CertificateChainPolicy Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the custom chain policy to use when validating certificate chains.
public System.Security.Cryptography.X509Certificates.X509ChainPolicy? CertificateChainPolicy { get; set; }
member this.CertificateChainPolicy : System.Security.Cryptography.X509Certificates.X509ChainPolicy with get, set
Property Value
Remarks
The getter will never return a null policy, it will return a policy configured with the default behavior.
To select the default policy, call the setter with null value.
This only has an effect if a custom server certificate validation callback is being used ('ServerCertificateCustomValidationCallback' is set).