TLSOptions
public struct TLSOptions
Options used to configure TLS/SSL connections to the database.
-
Indicates whether invalid hostnames are allowed. By default this is set to false.
Declaration
Swift
public var allowInvalidHostnames: Bool?
-
Specifies the path to the certificate authority file.
Declaration
Swift
public var caFile: URL?
-
Specifies the path to the client certificate key file.
Declaration
Swift
public var pemFile: URL?
-
Specifies the client certificate key password.
Declaration
Swift
public var pemPassword: String?
-
Indicates whether invalid certificates are allowed. By default this is set to false.
Declaration
Swift
public var weakCertValidation: Bool?
-
Convenience initializer allowing any/all arguments to be omitted or optional.
Declaration
Swift
public init( allowInvalidHostnames: Bool? = nil, caFile: URL? = nil, pemFile: URL? = nil, pemPassword: String? = nil, weakCertValidation: Bool? = nil )