SSLConfig

Undocumented

  • Undocumented

  • Undocumented

  • Initialize an SSLService.Configuration instance using a Certificate Chain File.

    Note: If using a certificate chain file, the certificates must be in PEM format and must be sorted starting with the subject’s certificate (actual client or server certificate), followed by intermediate CA certificates if applicable, and ending at the highest level (root) CA.

  • Parameters:

    • chainFilePath: Path to the certificate chain file (optional). (see note above)
    • password: Password for the chain file (optional).
    • selfSigned: True if certs are self-signed, false otherwise. Defaults to true.
  • Returns

    New SSLConfig instance.

    Declaration

    Swift

    public init(withChainFilePath chainFilePath: String? = nil, withPassword password: String? = nil, usingSelfSignedCerts selfSigned: Bool = true)

    Parameters

    chainFilePath

    Path to the certificate chain file (optional).

    password

    Password for the chain file (optional).

    selfSigned

    True if certs are self-signed, false otherwise. Defaults to true.

    Return Value

    New SSLConfig instance.