Security.SecPolicy.CreateSslPolicy Method
Create a policy instance that represent the SSL/TLS profile.

Syntax

public static SecPolicy CreateSslPolicy (bool server, string hostName)

Parameters

server
Indicate if the policy is for a server (true) or client (false) certificate.
hostName
The server host name on which the policy will be applied.

Returns

A SecPolicy instance that can be used to validate a SecCertificate using SecTrust.

Remarks

Requirements

Namespace: Security
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0