Welcome! Log In Create A New Profile

Advanced

Re: $ssl_client_escaped_cert does not contain intermediate client certificates

Maxim Dounin
July 06, 2020 08:48PM
Hello!

On Mon, Jul 06, 2020 at 03:55:05PM -0400, everhardt wrote:

> Thanks for your reply, Maxim! I'll work out an alternative then.
>
> Re. session resumption, I read in the OpenSSL docs
> (https://www.openssl.org/docs/man1.1.0/man3/SSL_get0_verified_chain.html)
> that OpenSSL is willing to store the chain longer than a single request, but
> only if the implementing application (nginx) is managing freeing it at the
> proper time (eg. when the session times out):
> > If applications wish to use any certificates in the returned chain
> indefinitely they must increase the reference counts using X509_up_ref() or
> obtain a copy of the whole chain with X509_chain_up_ref().

This quote is about how to use the chain if it is returned. The
problem is that the chain is _not_ returned for resumed sessions,
and there is no way to obtain it for a resumed session as long as
the chain uses intermediate certificates provided by the client.
Saving the chain somewhere once session is established may work as
a band-aid in some simple cases, but certainly not an option in
general for multiple reasons, including the fact that this won't
work with TLS session tickets when there is no server-side state.

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

$ssl_client_escaped_cert does not contain intermediate client certificates

everhardt July 04, 2020 05:52AM

Re: $ssl_client_escaped_cert does not contain intermediate client certificates

Maxim Dounin July 06, 2020 11:12AM

Re: $ssl_client_escaped_cert does not contain intermediate client certificates

everhardt July 06, 2020 03:55PM

Re: $ssl_client_escaped_cert does not contain intermediate client certificates

Maxim Dounin July 06, 2020 08:48PM

Re: $ssl_client_escaped_cert does not contain intermediate client certificates

everhardt July 07, 2020 03:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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