Skip to content

how to set cert file to yarp for ssl #2321

Answered by Tratcher
dantemayson asked this question in General
Discussion options

You must be logged in to vote

The X-Client-Cert description above is used to pass the client's client certificate through the proxy to the destination, not a certificate provided by YARP.

Do you mean that you want to accept inbound HTTPS/TLS connections and then proxy them?

YARP doesn't configure the inbound connections, that's AspNetCore / Kestrel.
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/endpoints?view=aspnetcore-7.0#listenoptionsusehttps

Or do you want YARP to authenticate to the destination server using a client certificate? If you want to add a certificate for YARP to use when authenticating to the destination then try this:
https://microsoft.github.io/reverse-proxy/articles/http…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by karelz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Idea This issue is a high-level idea for discussion.
2 participants
Converted from issue

This discussion was converted from issue #2316 on November 13, 2023 17:01.