Welcome! Log In Create A New Profile

Advanced

Re: Nginx can’t proxy client certificate authentication

Francis Daly
March 17, 2019 01:36PM
On Sat, Mar 16, 2019 at 02:30:16PM -0400, WoMa wrote:

Hi there,

> I solved this problem maybe not elegantly but it works.

Good that you found a solution.

I think that what you describe is the way to do it -- nginx does the
client certificate authentication, and does not try to proxy that aspect.

> 3 ) In locations that require a certificate (/ polishapi and /
> identityserver), it is verified if the authentication was successful
> client's certificate, if not, error 403 is returned - access denied
>
> if ($ssl_client_verify != SUCCESS) {
> return 403;
> }

The only extra piece you could add, if the haproxy side wanted to know
which specific client certificate was used, would be to use some of the
variables listed around http://nginx.org/r/$ssl_client_i_dn in headers
sent to the upstream.

That's probably just an extra "nice-to-have", rather than a requirement,
of course.

Cheers,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx can’t proxy client certificate authentication

WoMa March 15, 2019 08:42AM

Re: Nginx can’t proxy client certificate authentication

Francis Daly March 16, 2019 06:10AM

Re: Nginx can’t proxy client certificate authentication

WoMa March 16, 2019 02:30PM

Re: Nginx can’t proxy client certificate authentication

Francis Daly March 17, 2019 01:36PM

Re: Nginx can’t proxy client certificate authentication

WoMa March 18, 2019 04:31AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 240
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready