Show / Hide Table of Contents

    Class SslServerCredentials

    Server-side SSL credentials.

    Inheritance
    System.Object
    ServerCredentials
    SslServerCredentials
    Inherited Members
    ServerCredentials.Insecure
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Grpc.Core
    Assembly: Grpc.Core.dll
    Syntax
    public class SslServerCredentials : ServerCredentials

    Constructors

    SslServerCredentials(IEnumerable<KeyCertificatePair>)

    Creates server-side SSL credentials. This constructor should be use if you do not wish to autheticate client using client root certificates.

    Declaration
    public SslServerCredentials(IEnumerable<KeyCertificatePair> keyCertificatePairs)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<KeyCertificatePair> keyCertificatePairs

    Key-certificates to use.

    SslServerCredentials(IEnumerable<KeyCertificatePair>, String, Boolean)

    Creates server-side SSL credentials.

    Declaration
    public SslServerCredentials(IEnumerable<KeyCertificatePair> keyCertificatePairs, string rootCertificates, bool forceClientAuth)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<KeyCertificatePair> keyCertificatePairs

    Key-certificates to use.

    System.String rootCertificates

    PEM encoded client root certificates used to authenticate client.

    System.Boolean forceClientAuth

    If true, client will be rejected unless it proves its unthenticity using against rootCertificates.

    Properties

    ForceClientAuthentication

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

    Declaration
    public bool ForceClientAuthentication { get; }
    Property Value
    Type Description
    System.Boolean

    KeyCertificatePairs

    Key-certificate pairs.

    Declaration
    public IList<KeyCertificatePair> KeyCertificatePairs { get; }
    Property Value
    Type Description
    System.Collections.Generic.IList<KeyCertificatePair>

    RootCertificates

    PEM encoded client root certificates.

    Declaration
    public string RootCertificates { get; }
    Property Value
    Type Description
    System.String
    Back to top Generated by DocFX