Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] Proxy remote server SSL certificate verification

Aviram Cohen
September 01, 2013 04:20AM
Hello!

On Wed, Aug 28, 2013 at 3:41 AM, Maxim Dounin <mdounin@mdounin.ru> wrote:
> Hello!
>
[...]
>
> if (conf->upstream.ssl
> && ngx_ssl_trusted_certificate(cf, conf->upstream.ssl,
> &conf->upstream.ssl_certificate
> conf->upstream.ssl_verify_depth)
> != NGX_OK)
> {
> ...
> }
>
> Additional question is what happens in a configuration like
>
> location / {
> proxy_pass https://example.com;
> proxy_ssl_verify on;
> proxy_ssl_trusted_ceritifcate example.crt;
>
> if ($foo) {
> # do nothing
> }
> }
>
> or the same with a nested location instead of "if". Quick look
> suggest it will result in trusted certs loaded twice (and stale
> alerts later due to how OpenSSL handles this).
>

I have tried this configuration (and also a nested location), and didn't
see that Nginx loaded the same certificate twice (I've actually put
a breakpoint on the if clause in which ngx_ssl_trusted_certificate
is called, and it was called only once for the location.

Can you specify exactly how to reproduce this case?

Regards,
Aviram

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

[PATCH] Proxy remote server SSL certificate verification

Aviram Cohen 2418 August 20, 2013 08:34AM

Re: [PATCH] Proxy remote server SSL certificate verification

Maxim Dounin 1411 August 20, 2013 10:10AM

Re: [PATCH] Proxy remote server SSL certificate verification Attachments

Aviram Cohen 666 August 21, 2013 07:48AM

Re: [PATCH] Proxy remote server SSL certificate verification

Maxim Dounin 678 August 21, 2013 10:32AM

Re: [PATCH] Proxy remote server SSL certificate verification

Aviram Cohen 525 August 22, 2013 10:02AM

Re: [PATCH] Proxy remote server SSL certificate verification Attachments

Aviram Cohen 973 August 27, 2013 04:48AM

Re: [PATCH] Proxy remote server SSL certificate verification

Maxim Dounin 679 August 27, 2013 08:42PM

Re: [PATCH] Proxy remote server SSL certificate verification

Aviram Cohen 494 September 01, 2013 04:20AM

Re: [PATCH] Proxy remote server SSL certificate verification

Maxim Dounin 655 September 02, 2013 08:12AM

Re: [PATCH] Proxy remote server SSL certificate verification Attachments

Aviram Cohen 706 September 03, 2013 08:34AM

Re: [PATCH] Proxy remote server SSL certificate verification

Maxim Dounin 735 September 03, 2013 09:22AM

Re: [PATCH] Proxy remote server SSL certificate verification

Aviram Cohen 1172 October 09, 2013 12:34PM

Re: [PATCH] Proxy remote server SSL certificate verification

Maxim Dounin 839 October 10, 2013 08:36PM

Re: [PATCH] Proxy remote server SSL certificate verification

Aviram Cohen 741 October 16, 2013 08:30AM

Re: [PATCH] Proxy remote server SSL certificate verification

Phil Parker 482 September 03, 2013 07:26AM



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

Online Users

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