SSLClientCertificate

public class SSLClientCertificate

Undocumented

  • Convenience init.

    Declaration

    Swift

    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

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

    Declaration

    Swift

    public init(identity: SecIdentity, identityCertificate: SecCertificate)

    Parameters

    identity

    SecIdentityRef, see kCFStreamSSLCertificates

    identityCertificate

    CFArray of SecCertificateRefs, see kCFStreamSSLCertificates

  • Convenience init.

    Declaration

    Swift

    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

  • Designated init.

    Declaration

    Swift

    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