<PackageReference Include="Grpc.Core.Api" Version="2.76.0-pre1" />

Grpc.Core.SslCredentials

public sealed class SslCredentials : ChannelCredentials
Client-side SSL credentials.

Client side key and certificate pair. If null, client will not use key and certificate pair.

public string RootCertificates { get; }

PEM encoding of the server root certificates.

public SslCredentials()

Creates client-side SSL credentials loaded from disk file pointed to by the GRPC_DEFAULT_SSL_ROOTS_FILE_PATH environment variable. If that fails, gets the roots certificates from a well known place on disk.

public SslCredentials(string rootCertificates)

Creates client-side SSL credentials from a string containing PEM encoded root certificates.

public SslCredentials(string rootCertificates, KeyCertificatePair keyCertificatePair)

Creates client-side SSL credentials.

public SslCredentials(string rootCertificates, KeyCertificatePair keyCertificatePair, VerifyPeerCallback verifyPeerCallback)

Creates client-side SSL credentials.