Skip to content

SSLClientCertificate

leeway edited this page Nov 19, 2021 · 1 revision

SSLClientCertificate

public class SSLClientCertificate 

Initializers

init(pkcs12Path:password:)

Convenience init.

public convenience init(pkcs12Path: String, password: String) throws 

Parameters

  • pkcs12Path: Path to pkcs12 file containing private key and X.509 ceritifacte (.p12)
  • password: file password, see kSecImportExportPassphrase

init(identity:identityCertificate:)

Designated init. For more information, see SSLSetCertificate() in Security/SecureTransport.h.

public init(identity: SecIdentity, identityCertificate: SecCertificate) 

Parameters

  • identity: SecIdentityRef, see kCFStreamSSLCertificates
  • identityCertificate: CFArray of SecCertificateRefs, see kCFStreamSSLCertificates

init(pkcs12Url:password:)

Convenience init.

public convenience init(pkcs12Url: URL, password: String) throws 

Parameters

  • pkcs12Url: URL to pkcs12 file containing private key and X.509 ceritifacte (.p12)
  • password: file password, see kSecImportExportPassphrase

init(pkcs12Url:importOptions:)

Designated init.

public init(pkcs12Url: URL, importOptions: CFDictionary) throws 

Parameters

  • pkcs12Url: URL to pkcs12 file containing private key and X.509 ceritifacte (.p12)
  • importOptions: A dictionary containing import options. A kSecImportExportPassphrase entry is required at minimum. Only password-based PKCS12 blobs are currently supported. See SecImportExport.h
Types
Protocols
Global Variables
Clone this wiki locally