Configuring SSL support
NGINX uses the OpenSSL Project for TLS/SSL protocols. More information about this Open Source toolkit can be found at https://www.openssl.org. Support for SSL can be had from either the OS or directly from a separate copy of the toolkit. If you use either --with-http_ssl_module
or --with-mail_ssl_module
without --with-ssl
, you're using the OpenSSL library that is installed on the machine where you executed the configure
command. If you'd like to compile against a specific version of OpenSSL, download the distribution, unpack it in a directory, and then specify the path to that directory as the argument to --with-openssl
. Use the --with-openssl-opt
option to specify additional build options for OpenSSL itself.
For example, to build NGINX with an OpenSSL that has optimized elliptic curves, you would use a command such as the following:
$ ./configure --with-http_ssl_module --with-openssl=${BUILD_DIR}/openssl-1.0.1p --with-openssl-opt=enable-ec_nistp_64_gcc_128