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.
SslCredentials(string)
public SslCredentials(string rootCertificates)
Creates client-side SSL credentials from
a string containing PEM encoded root certificates.
public override 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\u003eSslCredentials is a class for creating client-side SSL credentials, inheriting from \u003ccode\u003eChannelCredentials\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers multiple constructors to create SSL credentials, including options to load root certificates from a string or the file pointed to by an environment variable, and to add a key certificate pair or a peer verification callback.\u003c/p\u003e\n"],["\u003cp\u003eIt provides properties for accessing the client-side key and certificate pair, which can be null, and the PEM encoding of the server root certificates, which can also be null.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eInternalPopulateConfiguration\u003c/code\u003e method is provided, which is an overridden method from \u003ccode\u003eChannelCredentials\u003c/code\u003e, to populate a channel credentials configurator with the instance's configuration, however, end users should not use it directly.\u003c/p\u003e\n"]]],[],null,[]]