Skip to content

Instantly share code, notes, and snippets.

@davidmtamas
Created April 2, 2020 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidmtamas/dcd05774f0262eafc8843acf50f57da8 to your computer and use it in GitHub Desktop.
Save davidmtamas/dcd05774f0262eafc8843acf50f57da8 to your computer and use it in GitHub Desktop.
if let domain = domain {
let policies = NSMutableArray()
policies.add(SecPolicyCreateSSL(true, domain as CFString))
SecTrustSetPolicies(serverTrust, policies)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment