Interesant era si versiunile anterioare de openssl/nginx dar noh:

https://www.reddit.com/r/sysadmin/comments/3ay2ez/openssls_logjam_cve20154000_fixes_break_smtp/

re-genereaza  /etc/ssl/certs/dhparam.pem sa fie pe 1024 bits.

openssl dhparam -out ./dhparam.pem 2048

sau 1024. 2048 o sa dureze (zeci de minute)



On 15 June 2016 at 13:35, Catalin Muresan <[email protected]> wrote:

> rollback openssl
>
> On 15 June 2016 at 13:31, Matei, Petre-Marius <[email protected]>
> wrote:
>
>> Salut,
>>
>> Nginx s-a oprit sa mai forwardeze requesturile in spate si primesc eroarea
>>
>> 2016/06/15 08:13:02 [crit] 20152#20152: *1 SSL_do_handshake() failed
>> (SSL: error:14082174:SSL routines:SSL3_CHECK_CERT_AND_ALGORITHM:dh key
>> too small) while SSL handshaking to upstream, client: 172.17.32.254,
>> server: acd-us.domain.com, request: "GET / HTTP/1.1", upstream:
>> "https://172.17.19.29:8443/";, host: "acd-us.domain.com:8443"
>>
>> In spate ruleaza un tomcat pe care nu il pot restarta fara impact si
>> incerc sa rezolv problema facand vreun overwrite din nginx.
>>
>> Tomcatul foloseste un certificat self signed dar a mers pana la ultimul
>> update de nginx/openssl
>>
>> nginx version: nginx/1.10.1
>> built by gcc 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
>> built with OpenSSL 1.0.1f 6 Jan 2014
>> TLS SNI support enabled
>> configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx
>> --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf
>> --error-log-path=/var/log/nginx/error.log
>> --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid
>> --lock-path=/var/run/nginx.lock
>> --http-client-body-temp-path=/var/cache/nginx/client_temp
>> --http-proxy-temp-path=/var/cache/nginx/proxy_temp
>> --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp
>> --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp
>> --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx
>> --group=nginx --with-http_ssl_module --with-http_realip_module
>> --with-http_addition_module --with-http_sub_module
>> --with-http_dav_module --with-http_flv_module --with-http_mp4_module
>> --with-http_gunzip_module --with-http_gzip_static_module
>> --with-http_random_index_module --with-http_secure_link_module
>> --with-http_stub_status_module --with-http_auth_request_module
>> --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic
>> --with-http_geoip_module=dynamic --with-http_perl_module=dynamic
>> --add-dynamic-module=debian/extra/njs-1c50334fbea6/nginx --with-threads
>> --with-stream --with-stream_ssl_module --with-http_slice_module
>> --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6
>> --with-http_v2_module --with-cc-opt='-g -O2 -fstack-protector
>> --param=ssp-buffer-size=4 -Wformat -Werror=format-security
>> -Wp,-D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions
>> -Wl,-z,relro -Wl,--as-needed'
>>
>> Configuratia nginx este urmatoarea:
>>
>> upstream lb-subprint8443 {
>>      ip_hash;
>>      server 172.17.19.15:8443 max_fails=3 fail_timeout=10s; # Reverse
>> proxy to machine-1
>>      server 172.17.19.16:8443 max_fails=3 fail_timeout=10s; # Reverse
>> proxy to machine-2
>>      server 172.17.19.17:8443 max_fails=3 fail_timeout=10s; # Reverse
>> proxy to machine-3
>> }
>>
>> server {
>>      listen 172.16.111.70:8443 ssl;
>>      server_name acd-us.domain.com;
>>      ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
>>      ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';
>>      ssl_prefer_server_ciphers on;
>>      ssl_session_cache shared:SSL:10m;
>>      ssl_dhparam /etc/ssl/certs/dhparam.pem;
>>
>>      ssl_certificate /etc/nginx/ssl/acd-us.domain.com.crt;
>>      ssl_certificate_key /etc/nginx/ssl/acd-us.domain.com.key;
>>
>>      access_log /var/log/nginx/acd-us.domain.com.8443.access.log;
>>      error_log /var/log/nginx/acd-us.domain.com.8443.error.log warn;
>>
>>      location / {
>>      proxy_pass https://lb-subprint8443/; # Load balance the URL
>> location "/" to the upstream lb-subprint
>>      proxy_bind 172.16.111.70;
>>      proxy_http_version 1.1;
>>      proxy_set_header Upgrade $http_upgrade;
>>      proxy_set_header Connection 'upgrade';
>>      proxy_set_header Host $my_host;
>>      proxy_cache_bypass $http_upgrade;
>>
>>      proxy_ssl_verify              off;
>>
>>      }
>> }
>>
>>
>> Mersi pentru orice ajutor.
>>
>> Marius
>>
>>
>> _______________________________________________
>> RLUG mailing list
>> [email protected]
>> http://lists.lug.ro/mailman/listinfo/rlug
>>
>
>
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug

Raspunde prin e-mail lui