SecPolicy.CreateSslPolicy(Boolean, String) Method
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.
Create a policy instance that represent the SSL/TLS profile.
public static Security.SecPolicy CreateSslPolicy (bool server, string hostName);
static member CreateSslPolicy : bool * string -> Security.SecPolicy
Parameters
- server
- Boolean
Indicate if the policy is for a server (true) or client (false) certificate.
- hostName
- String
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.