Caddy: Allow to extract fields from client cert (to set header for example)

Created on 4 Oct 2017  路  5Comments  路  Source: caddyserver/caddy

This might be the same situation as #1904, duplicate of #1375, but I couldn't find an explicit issue about this. https://caddy.community/t/tls-authentication-with-client-cert/1074/7 eventually mention it.

Could it be possible to extract client certificate fields ?
To set them in a header, pass them to the underlying server for example, allowing simple authentification (but filtering this header for upstream, using header_upstream I suppose).

feature request

All 5 comments

Out of curiosity, are other servers like nginx able to do this?

Has there been any progress on this? I had assumed at first that there was already a way to get the client's cert info, based on the 'verify_if_given' parameter (otherwise this parameter seems no better than not authenticating clients at all), but it seems this is not the case.

It looks like this has actually been fixed in master. Can somebody confirm that this is a duplicate of #2115?

Yup, I think you're right @virtualdxs looks like a duplicate. Thanks for spotting that!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

klaasel picture klaasel  路  3Comments

muhammadmuzzammil1998 picture muhammadmuzzammil1998  路  3Comments

jgsqware picture jgsqware  路  3Comments

kilpatty picture kilpatty  路  3Comments

treviser picture treviser  路  3Comments