Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] SSL: add "{proxy, uwsgi}_ssl_verify" and supporting directives

Piotr Sikora
February 11, 2014 04:18PM
Hey Maxim,

> Well, there is no real difference, but I think that it would be
> easier to use distinct flags instead. Note that it also matches
> what Apache has:
>
> http://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslproxycheckpeername
>
> By looking around you may also find various other flags in Apache
> to control verification (like SSLProxyCheckPeerExpire). I suspect
> eventually we may need to add at least some of them. Having all
> this controlled in a single directive would be a pain.

But isn't having multiple parameters on the directive line kind of
nginx style? ;)

Anyway, I'll do it your way.

> My original suggestion is as follows:
>
> proxy_ssl_name <value>
>
> default: $proxy_host
> complex value, controls a name used in SNI (if
> enabled)
>
> proxy_ssl_verify on|off
>
> default: off
> flag, controls if remote certificate verification is enabled
>
> proxy_ssl_verify_name on|off
>
> default: on
> flag, controls if remote certificate verification needs to
> check peer's name; must be explicitly switched off
> if certificate verification is switched on, but
> the name can't be checked due to too old OpenSSL

Got it.

> proxy_ssl_sni on|off
>
> default: off (?)
> flag, controls if SNI (Server Name Indication) will be used
> while connecting to backends;
>
> (I tend to think that "proxy_ssl_sni" is a better name compared to
> "proxy_ssl_server_name", as Server Name Indication is usually
> called SNI in various places.)

I dislike the "_sni" suffix, it just looks ugly in lowercase and most
of the variable and directive names in nginx is rather verbose...
"proxy_ssl_server_name" would also match "$ssl_server_name" (if that
ever gets merged...).

I also believe that it should be turned on by default. Other than
broken upstream that can't handle large SSL Client Hello (F5, etc.),
there is no reason for any HTTP client to not use SNI.

Best regards,
Piotr Sikora

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

[PATCH] SSL: add "{proxy, uwsgi}_ssl_verify" and supporting directives

Piotr Sikora 1148 February 04, 2014 09:32PM

[PATCH] SSL: add "{proxy, uwsgi}_ssl_verify" and supporting directives

Piotr Sikora 419 February 05, 2014 01:56AM

Re: [PATCH] SSL: add "{proxy, uwsgi}_ssl_verify" and supporting directives

Maxim Dounin 400 February 06, 2014 11:12AM

Re: [PATCH] SSL: add "{proxy, uwsgi}_ssl_verify" and supporting directives

Piotr Sikora 404 February 06, 2014 05:40PM

Re: [PATCH] SSL: add "{proxy, uwsgi}_ssl_verify" and supporting directives

Maxim Dounin 371 February 06, 2014 07:04PM

Re: [PATCH] SSL: add "{proxy, uwsgi}_ssl_verify" and supporting directives

Piotr Sikora 404 February 06, 2014 09:42PM

Re: [PATCH] SSL: add "{proxy, uwsgi}_ssl_verify" and supporting directives

Maxim Dounin 456 February 07, 2014 06:00AM

Re: [PATCH] SSL: add "{proxy, uwsgi}_ssl_verify" and supporting directives

Piotr Sikora 455 February 11, 2014 04:18PM

Re: [PATCH] SSL: add "{proxy, uwsgi}_ssl_verify" and supporting directives

Maxim Dounin 402 February 12, 2014 11:30AM

Re: [PATCH] SSL: add "{proxy, uwsgi}_ssl_verify" and supporting directives

Valentin V. Bartenev 401 February 12, 2014 01:44PM

Re: [PATCH] SSL: add "{proxy, uwsgi}_ssl_verify" and supporting directives

Maxim Dounin 486 April 18, 2014 12:54PM

Re: [PATCH] SSL: add "{proxy, uwsgi}_ssl_verify" and supporting directives

Piotr Sikora 650 April 22, 2014 08:02AM



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

Online Users

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