You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Question regarding the statement above under the Kestrel options section:
Kestrel options, which are configured in C# code in the following examples, can also be set using a configuration provider. For example, the File Configuration Provider can load Kestrel configuration from an appsettings.json or appsettings.{Environment}.json file:
In reading the statement above, I am curious if it is possible to set the ClientCertificateMode from the HttpsConnectionAdapterOptions class HttpsConnectionAdapterOptions.cs from an appsettings.json file.
I did observe in the Endpoint configuration section above that there is an appsettings.json file example configuring the EndpointDefaults property of the KestrelServerOptions class, which is a sibling property of the HttpsDefaults property, and I inferred that it should also be possible to configure the HttpsDefaults property from an appsettings.json file.
Thank you in advance for any information you are able to provide.
Thank you for the detailed documentation.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: f22dcddb-0c25-be1a-9a02-9e71dce86bdb
Version Independent ID: 3e0e12c2-e544-5655-e001-d2ec180b11a8
Hello @javs-ctr ... Indeed, there isn't exact parity between the naming of properties that you can set in code and the keys used in the configuration file. I don't think that one is available ...
However, it's best to ask. Even if it isn't available, your feedback is important to them for framework design. Open a new issue with exactly what you posted ☝️ at ...
guardrex
changed the title
Kestrel options ... can also be set using a configuration provider... from an appsettings.json ... file
Clarify configuration provider capabilities for Kestrel options
Jan 29, 2020
Question regarding the statement above under the Kestrel options section:
In reading the statement above, I am curious if it is possible to set the
ClientCertificateMode
from theHttpsConnectionAdapterOptions
class HttpsConnectionAdapterOptions.cs from an appsettings.json file.I have tried:
in an appsettings.json file to no avail.
Yet, I am able to configure the
ClientCertificateMode
Kestrel option from C# code as follows (inProgram.cs
):I did observe in the Endpoint configuration section above that there is an appsettings.json file example configuring the
EndpointDefaults
property of theKestrelServerOptions
class, which is a sibling property of theHttpsDefaults
property, and I inferred that it should also be possible to configure theHttpsDefaults
property from an appsettings.json file.Thank you in advance for any information you are able to provide.
Thank you for the detailed documentation.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
The text was updated successfully, but these errors were encountered: