Maxim Dounin
December 28, 2021 11:00AM
Hello!

On Tue, Dec 28, 2021 at 11:56:50AM +0000, CHHABRA Mandeep Singh wrote:

> # HG changeset patch
> # User Mandeep Singh Chhabra <mandeep-singh.chhabra@thalesgroup.com>
> # Date 1640691269 -19800
> # Tue Dec 28 17:04:29 2021 +0530
> # Node ID 9baaef976ac80f05107b60801ebe6559cdb2cbc6
> # Parent b002ad258f1d70924dc13d8f4bc0cc44362f0d0a
> Add provision to fetch certificate chain from Nginx
>
> The change adds a new variable ('ssl_client_cert_chain') to the
> existing set of variables. It is being part of the http's SSL
> module. With this, the middleware can fetch the certificate chain
> from Nginx using the variable mentioned. The variable returns
> a verified chain of certificates.
> If the trust anchor is a root certificate (self signed) which has
> issued an intermediate certificate and the client certificate is
> issued by the intermediate certificate. The variable ('ssl_client_cert_chain')
> will return three certificates (rootCert -> intermediateCert -> clientCert)

Thanks for the patch.

You may want to be more specific about which problem you are
trying to solve. In particular, all root and intermediate
certificates are expected to be known on the server. If they
aren't for some reason, it might be a good idea to clarify why
they aren't known or reconsider particular configuration.

[...]

> + p = s->data;
> +
> + for (i = 0; i < cert_chain.len - 1; i++) {
> + *p++ = cert_chain.data[i];
> + if (cert_chain.data[i] == LF) {
> + *p++ = '\t';
> + }

Just a side note: certainly we are not going to introduce new
variables using this syntax.

Also it might be a good idea to fix various style issues in the
patch, but probably it make sense to resolve the "why it should be
needed" question first.

[...]

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Add provision to fetch certificate chain from Nginx

CHHABRA Mandeep Singh 560 December 28, 2021 06:58AM

Re: [PATCH] Add provision to fetch certificate chain from Nginx

Maxim Dounin 176 December 28, 2021 11:00AM

RE: [PATCH] Add provision to fetch certificate chain from Nginx

CHHABRA Mandeep Singh 136 December 30, 2021 04:36AM

RE: [PATCH] Add provision to fetch certificate chain from Nginx

CHHABRA Mandeep Singh 156 January 06, 2022 06:54AM

Re: [PATCH] Add provision to fetch certificate chain from Nginx

Maxim Dounin 152 January 11, 2022 03:42PM

RE: [PATCH] Add provision to fetch certificate chain from Nginx

CHHABRA Mandeep Singh via nginx-devel 106 January 29, 2022 08:54AM

Re: [PATCH] Add provision to fetch certificate chain from Nginx

Maxim Dounin 266 January 30, 2022 06:56PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 180
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