public static ChannelCredentials SecureSsl { get; }
Returns instance of credentials that provides SSL security.
These credentials are the same as creatingSslCredentialswithout parameters.
Apps that are using Grpc.Core can createSslCredentialsdirectly to customize
the secure SSL credentials.
public abstract void InternalPopulateConfiguration(ChannelCredentialsConfiguratorBase configurator, object state)
Populates channel credentials configurator with this instance's configuration.
End users never need to invoke this method as it is part of internal implementation.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003e\u003ccode\u003eChannelCredentials\u003c/code\u003e is an abstract class used to create secure client-side channels within the Grpc.Core framework.\u003c/p\u003e\n"],["\u003cp\u003eIt supports creating both secure channels using SSL via the \u003ccode\u003eSecureSsl\u003c/code\u003e property, and insecure channels with no encryption through the \u003ccode\u003eInsecure\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreate\u003c/code\u003e method facilitates combining \u003ccode\u003eChannelCredentials\u003c/code\u003e with \u003ccode\u003eCallCredentials\u003c/code\u003e to generate composite credentials for a channel.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits multiple members from the \u003ccode\u003eobject\u003c/code\u003e class, including methods for equality checks, getting hash codes, and type retrieval.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eChannelCredentials\u003c/code\u003e is 2.66.0, with older versions 2.63.0 and 2.48.0 also available.\u003c/p\u003e\n"]]],[],null,["# Class ChannelCredentials (2.66.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.66.0 (latest)](/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.ChannelCredentials)\n- [2.63.0](/dotnet/docs/reference/Grpc.Core/2.63.0/Grpc.Core.ChannelCredentials)\n- [2.48.0](/dotnet/docs/reference/Grpc.Core/2.48.0/Grpc.Core.ChannelCredentials) \n\n public abstract class ChannelCredentials\n\nClient-side channel credentials. Used for creation of a secure channel. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ChannelCredentials \n\nInherited Members\n-----------------\n\n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)) \n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring) \n\nDerived Types\n-------------\n\n[SslCredentials](/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.SslCredentials)\n\nNamespace\n---------\n\n[Grpc.Core](/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core)\n\nAssembly\n--------\n\nGrpc.Core.Api.dll\n\nConstructors\n------------\n\n### ChannelCredentials()\n\n public ChannelCredentials()\n\nCreates a new instance of channel credentials\n\nProperties\n----------\n\n### Insecure\n\n public static ChannelCredentials Insecure { get; }\n\nReturns instance of credentials that provides no security and\nwill result in creating an unsecure channel with no encryption whatsoever.\n\n### SecureSsl\n\n public static ChannelCredentials SecureSsl { get; }\n\nReturns instance of credentials that provides SSL security.\n\n\nThese credentials are the same as creating [SslCredentials](/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.SslCredentials) without parameters.\nApps that are using Grpc.Core can create [SslCredentials](/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.SslCredentials) directly to customize\nthe secure SSL credentials.\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### Create(ChannelCredentials, CallCredentials)\n\n public static ChannelCredentials Create(ChannelCredentials channelCredentials, CallCredentials callCredentials)\n\nCreates a new instance of `ChannelCredentials` class by composing\ngiven channel credentials with call credentials.\n\n### InternalPopulateConfiguration(ChannelCredentialsConfiguratorBase, object)\n\n public abstract void InternalPopulateConfiguration(ChannelCredentialsConfiguratorBase configurator, object state)\n\nPopulates channel credentials configurator with this instance's configuration.\nEnd users never need to invoke this method as it is part of internal implementation."]]