public class SslServerCredentials : ServerCredentials
Server-side SSL credentials.
Inherited Members
Namespace
Grpc.CoreAssembly
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).
Type | Name | Description |
---|---|---|
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.
Type | Name | Description |
---|---|---|
IEnumerable<KeyCertificatePair> | keyCertificatePairs | Key-certificates to use. |
String | rootCertificates | PEM encoded client root certificates used to authenticate client. |
SslClientCertificateRequestType | clientCertificateRequest | 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.
Type | Name | Description |
---|---|---|
IEnumerable<KeyCertificatePair> | keyCertificatePairs | Key-certificates to use. |
String | rootCertificates | PEM encoded client root certificates used to authenticate client. |
Boolean | forceClientAuth | Deprecated, use clientCertificateRequest overload instead. |
Properties
ClientCertificateRequest
public SslClientCertificateRequestType ClientCertificateRequest { get; }
Mode of requesting certificate from client by the server.
Type | Description |
---|---|
SslClientCertificateRequestType |
ForceClientAuthentication
public bool ForceClientAuthentication { get; }
Deprecated. If true, the authenticity of client check will be enforced.
Type | Description |
---|---|
Boolean |
KeyCertificatePairs
public IList<KeyCertificatePair> KeyCertificatePairs { get; }
Key-certificate pairs.
Type | Description |
---|---|
IList<KeyCertificatePair> |
RootCertificates
public string RootCertificates { get; }
PEM encoded client root certificates.
Type | Description |
---|---|
String |