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 used if you do not wish to authenticate the client. (client certificate won't be requested and checked by the server at all).

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

    Key-certificates to use.

    SslServerCredentials(IEnumerable<KeyCertificatePair>, String, SslClientCertificateRequestType)

    Creates server-side SSL credentials.

    Declaration
    public SslServerCredentials(IEnumerable<KeyCertificatePair> keyCertificatePairs, string rootCertificates, SslClientCertificateRequestType clientCertificateRequest)
    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.

    SslClientCertificateRequestType clientCertificateRequest

    Options for requesting and verifying client certificate.

    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

    Deprecated, use clientCertificateRequest overload instead.

    Properties

    ClientCertificateRequest

    Mode of requesting certificate from client by the server.

    Declaration
    public SslClientCertificateRequestType ClientCertificateRequest { get; }
    Property Value
    Type Description
    SslClientCertificateRequestType

    ForceClientAuthentication

    Deprecated. 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