SSLConfig
Undocumented
-
Undocumented
-
Initialize an SSLService.Configuration instance using a
CA Certificate
file. -
Initialize an SSLService.Configuration instance using a
CA Certificate
directory.Note:
caCertificateDirPath
- All certificates in the specified directory must be hashed using theOpenSSL Certificate Tool
. -
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.
Declaration
Swift
public init(withChainFilePath chainFilePath: String? = nil, withPassword password: String? = nil, usingSelfSignedCerts selfSigned: Bool = true, cipherSuite: String? = nil)
Parameters
chainFilePath
Path to the certificate chain file (optional). (see note above)
password
Export password for the chain file (optional). This is required if using a certificate chain file.
selfSigned
True if certs are
self-signed
, false otherwise. Defaults to true.Return Value
New SSLConfig instance.