Class SslServerCredentials

public class SslServerCredentials : ServerCredentials

Server-side SSL credentials.

Inheritance

Object > ServerCredentials > SslServerCredentials

Inherited Members

Namespace

Grpc.Core

Assembly

Grpc.Core.dll

Constructors

SslServerCredentials(IEnumerable<KeyCertificatePair>)

public SslServerCredentials(IEnumerable<KeyCertificatePair> keyCertificatePairs)

Creates server-side SSL credentials. This constructor should be used if you do not wish to authenticate the client. (client certificate won't be requested and checked by the server at all).

Parameter
TypeNameDescription
IEnumerable<KeyCertificatePair>keyCertificatePairs

Key-certificates to use.

SslServerCredentials(IEnumerable<KeyCertificatePair>, String, SslClientCertificateRequestType)

public SslServerCredentials(IEnumerable<KeyCertificatePair> keyCertificatePairs, string rootCertificates, SslClientCertificateRequestType clientCertificateRequest)

Creates server-side SSL credentials.

Parameters
TypeNameDescription
IEnumerable<KeyCertificatePair>keyCertificatePairs

Key-certificates to use.

StringrootCertificates

PEM encoded client root certificates used to authenticate client.

SslClientCertificateRequestTypeclientCertificateRequest

Options for requesting and verifying client certificate.

SslServerCredentials(IEnumerable<KeyCertificatePair>, String, Boolean)

public SslServerCredentials(IEnumerable<KeyCertificatePair> keyCertificatePairs, string rootCertificates, bool forceClientAuth)

Creates server-side SSL credentials.

Parameters
TypeNameDescription
IEnumerable<KeyCertificatePair>keyCertificatePairs

Key-certificates to use.

StringrootCertificates

PEM encoded client root certificates used to authenticate client.

BooleanforceClientAuth

Deprecated, use clientCertificateRequest overload instead.

Properties

ClientCertificateRequest

public SslClientCertificateRequestType ClientCertificateRequest { get; }

Mode of requesting certificate from client by the server.

Property Value
TypeDescription
SslClientCertificateRequestType

ForceClientAuthentication

public bool ForceClientAuthentication { get; }

Deprecated. If true, the authenticity of client check will be enforced.

Property Value
TypeDescription
Boolean

KeyCertificatePairs

public IList<KeyCertificatePair> KeyCertificatePairs { get; }

Key-certificate pairs.

Property Value
TypeDescription
IList<KeyCertificatePair>

RootCertificates

public string RootCertificates { get; }

PEM encoded client root certificates.

Property Value
TypeDescription
String