<div xmlns="http://www.w3.org/1999/xhtml">Hello.</div><div xmlns="http://www.w3.org/1999/xhtml">I use nginx 1.13.6 as server for mutual tls auth with clients certs</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">During ab test I get errors ssl read failed(5) closing connection</div><div xmlns="http://www.w3.org/1999/xhtml">In nginx log (debug mode) I get</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:01 [debug] 26#26: *27497 http check ssl handshake</div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:01 [debug] 26#26: *27497 http recv(): 1</div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:01 [debug] 26#26: *27497 https ssl handshake: 0x16</div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:01 [debug] 26#26: *27497 tcp_nodelay</div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:01 [debug] 26#26: *27497 SSL server name: "meteotravel.ru"</div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:01 [debug] 26#26: *27497 SSL_do_handshake: -1</div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:01 [debug] 26#26: *27497 SSL_get_error: 2</div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:01 [debug] 26#26: *27497 reusable connection: 0</div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:02 [debug] 26#26: *27497 SSL handshake handler: 0</div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:02 [debug] 26#26: *27497 SSL_do_handshake: -1</div><div xmlns="http://www.w3.org/1999/xhtml"><strong>2019/01/21 23:50:02 [debug] 26#26: *27497 SSL_get_error: 5</strong></div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:02 [info] 26#26: *27497 peer closed connection in SSL         </div><div xmlns="http://www.w3.org/1999/xhtml">handshake while SSL handshaking, client: 10.244.5.0, server: 0.0.0.0:443</div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:02 [debug] 26#26: *27497 close http connection: 25</div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:02 [debug] 26#26: *27497 event timer del: 25: 1548114661807</div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:02 [debug] 26#26: *27497 reusable connection: 0</div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:02 [debug] 26#26: *27497 free: 0000557A448A4B10, unused: 146</div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:02 [debug] 19#19: accept on 0.0.0.0:443, ready: 0</div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:02 [debug] 19#19: posix_memalign: 0000557A448DB650:512 @16</div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:02 [debug] 19#19: *27498 accept: 10.244.5.0:44670 fd:35</div><div xmlns="http://www.w3.org/1999/xhtml">2019/01/21 23:50:02 [debug] 19#19: *27498 event timer add: 35: 60000:           </div><div xmlns="http://www.w3.org/1999/xhtml">1548114662323</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">nginx -V<br />nginx version: nginx/1.13.6<br />built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11)<br />built with OpenSSL 1.1.0h  27 Mar 2018<br />TLS SNI support enabled<br />configure arguments: --prefix=/etc/nginx --with-ld-opt=-Wl,-rpath,/usr/local/lib --add-module=/usr/app/ngx_devel_kit-0.3.0 --add-module=/usr/app/lua-nginx-module-0.10.13 --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 --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 --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --user=root --group=www-data --user=www-data --group=www-data --with-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-debug --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie'<br />root@cpronginx-4tnz7:/var/log/nginx# openssl version<br />OpenSSL 1.1.0h  27 Mar 2018<br /><br />How to solve this problem</div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml"> </div><div xmlns="http://www.w3.org/1999/xhtml">-- </div><div xmlns="http://www.w3.org/1999/xhtml">С уважением, Алексей.</div><div xmlns="http://www.w3.org/1999/xhtml"> </div>