SslServerCredentialsOptions
public struct SslServerCredentialsOptions
The structure below exactly match the corresponding gRPC SslServerCredentialsOptions structure. Options for configuring a gRPC server with SSL/TLS credentials.
-
Root certificates (in PEM format) used to verify the client certificate. Required only for mutual TLS.
Declaration
Swift
public var pemRootCerts: String -
List of server key/certificate pairs. At least one pair must be provided.
Declaration
Swift
public var pemKeyCertPairs: [PemKeyCertPair] -
Indicates whether the server should request and verify the client’s certificate.
Declaration
Swift
public var clientCertificateRequest: ClientCertificateRequestType -
Creates a new instance.
Declaration
Swift
public init(pemRootCerts: String, pemKeyCertPairs: [PemKeyCertPair], clientCertificateRequest: ClientCertificateRequestType)