Class SslCredentials
Client-side SSL credentials.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Grpc.Core
Assembly: Grpc.Core.dll
Syntax
public sealed class SslCredentials : ChannelCredentials
Constructors
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.
Declaration
public SslCredentials()
SslCredentials(String)
Creates client-side SSL credentials from a string containing PEM encoded root certificates.
Declaration
public SslCredentials(string rootCertificates)
Parameters
Type | Name | Description |
---|---|---|
System.String | rootCertificates |
SslCredentials(String, KeyCertificatePair)
Creates client-side SSL credentials.
Declaration
public SslCredentials(string rootCertificates, KeyCertificatePair keyCertificatePair)
Parameters
Type | Name | Description |
---|---|---|
System.String | rootCertificates | string containing PEM encoded server root certificates. |
KeyCertificatePair | keyCertificatePair | a key certificate pair. |
SslCredentials(String, KeyCertificatePair, VerifyPeerCallback)
Creates client-side SSL credentials.
Declaration
public SslCredentials(string rootCertificates, KeyCertificatePair keyCertificatePair, VerifyPeerCallback verifyPeerCallback)
Parameters
Type | Name | Description |
---|---|---|
System.String | rootCertificates | string containing PEM encoded server root certificates. |
KeyCertificatePair | keyCertificatePair | a key certificate pair. |
VerifyPeerCallback | verifyPeerCallback | a callback to verify peer's target name and certificate. |
Properties
KeyCertificatePair
Client side key and certificate pair. If null, client will not use key and certificate pair.
Declaration
public KeyCertificatePair KeyCertificatePair { get; }
Property Value
Type | Description |
---|---|
KeyCertificatePair |
RootCertificates
PEM encoding of the server root certificates.
Declaration
public string RootCertificates { get; }
Property Value
Type | Description |
---|---|
System.String |