Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Piotr Sikora
October 29, 2014 03:28PM
Hey Sergey,

> Alternatively, remove error collection that doesn’t really make much sense.
> It’s an open set and we cannot predict for sure all of them enumerated.

That's also a valid approach, but the commit is wrong.

> # HG changeset patch
> # User Sergey Kandaurov <pluknet@nginx.com>
> # Date 1414150080 25200
> # Fri Oct 24 04:28:00 2014 -0700
> # Node ID 47728601e542cab9406ea323576f6df5adfff193
> # Parent 973fded4f461f3a397779b3a1dc80881b1b34974
> SSL: simplified ssl_password_file error handling.
>
> Instead of collecting a number of the possible SSL_CTX_use_PrivateKey_file()
> error codes that becomes more and more difficult with the rising variety of
> OpenSSL versions and its derivatives, just continue with the next passphrase.
>
> This fixes multiple passwords in a single ssl_password_file that was broken
> after recent OpenSSL changes (commit 4aac102f75b517bdb56b1bcfd0a856052d559f6e).

Not even "Reported by"? :P

> diff -r 973fded4f461 -r 47728601e542 src/event/ngx_event_openssl.c
> --- a/src/event/ngx_event_openssl.c Wed Oct 15 22:57:23 2014 +0400
> +++ b/src/event/ngx_event_openssl.c Fri Oct 24 04:28:00 2014 -0700
> @@ -404,20 +404,9 @@ ngx_ssl_certificate(ngx_conf_t *cf, ngx_
> }
>
> if (--tries) {
> - n = ERR_peek_error();

n is being used to print the final error, after the use of the last
password fails, so you cannot completely remove it. You should
probably just move it after the if loop.

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: make ssl_password_file work with recent OpenSSL releases

Piotr Sikora 814 October 24, 2014 07:30AM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Sergey Kandaurov 350 October 27, 2014 09:56AM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Maxim Dounin 307 October 27, 2014 12:30PM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Piotr Sikora 290 October 27, 2014 05:40PM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Sergey Kandaurov 368 October 29, 2014 02:12PM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Sergey Kandaurov 390 October 29, 2014 03:12PM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Piotr Sikora 321 October 29, 2014 03:28PM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Piotr Sikora 284 October 30, 2014 05:42AM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Sergey Kandaurov 378 October 30, 2014 10:42AM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Piotr Sikora 301 October 29, 2014 03:20PM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Piotr Sikora 325 October 30, 2014 12:16AM

Re: [PATCH] SSL: make ssl_password_file work with recent OpenSSL releases

Piotr Sikora 315 October 27, 2014 07:52PM



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

Online Users

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