SslClientCredentialsOptions
public struct SslClientCredentialsOptions
The structure below exactly match the corresponding gRPC SslCredentialsOptions structure. Options used to build SslCredentials.
-
The PEM-encoded root certificates used to verify the server.
Declaration
Swift
public var pemRootCerts: String -
The client’s private key in PEM format. It must be non-empty for mutual TLS. Else must be set to empty string.
Declaration
Swift
public var pemPrivateKey: String -
The client’s certificate chain in PEM format. It must be non-empty for mutual TLS. Else must be set to empty string.
Declaration
Swift
public var pemCertChain: String -
Creates a new instance.
Declaration
Swift
public init(pemRootCerts: String, pemPrivateKey: String, pemCertChain: String) -
The constructor which creates a new instance and sets both
pem_private_keyandpem_cert_chainto empty strings.Declaration
Swift
public init(pemRootCerts: String)