Opened 10 years ago

Closed 7 years ago

#708 closed enhancement (fixed)

Documentation improvement: SSL chain verification with SNI support

Reported by: Mihail Milushev Owned by:
Priority: minor Milestone:
Component: documentation Version:
Keywords: Cc:
uname -a: Linux loom 2.6.32-042stab085.20 #1 SMP Sat Jun 21 00:15:09 MSK 2014 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.4.6 (Ubuntu)
built by gcc 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_spdy_module --with-http_sub_module --with-http_xslt_module --with-mail --with-mail_ssl_module

Description

The documentation about setting up SSL certificate chains suggests to use the openssl utility to validate chain correctness:

    openssl s_client -connect www.godaddy.com:443

This will work for naive cases, but actually only validates the certificate chain for the default virtual host. I suggest that the documentation should be updated to include a -servername parameter, which would actually test the correct virtual host:

    openssl s_client -connect www.godaddy.com:443 -servername www.godaddy.com

Change History (3)

comment:1 by Maxim Dounin, 8 years ago

Component: nginx-coredocumentation

comment:2 by Yaroslav Zhuravlev <yar@…>, 7 years ago

In 2061:aac9e462320b/nginx_org:

Added note about s_client and SNI (trac #708).

comment:3 by Yaroslav Zhuravlev, 7 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.