CentOS 6 で nginx にて TLSv1.3 にする。(とにかく tar.gz を使って yum で動かしたときのメモ)
対象となるのはすでに nginx をインストールしている方だと思います。 あと、自己責任でお願いします。 (1)ビルドするためのツールをインストール $ sudo yum install gcc pcre-devel perl zlib-devel (2)OpenSSL のダウンロード(2019/10/06現在のOpenSSLの最新版は1.1.1d) $ cd /usr/local/src/ $ sudo curl -O https://www.openssl.org/source/openssl-1.1.1d.tar.gz $ sudo tar fxz openssl-1.1.1d.tar.gz (3)nginx のダウンロードとインストール(2019/10/06現在のnginxの最新版は1.16.1) $ sudo curl -O https://nginx.org/download/nginx-1.16.1.tar.gz $ sudo tar fxz nginx-1.16.1.tar.gz $ cd nginx-1.16.1 # 下のconfigure は自分の設定しているものを突っ込んでください。 # 今現在 nginx を使っているなら $ nginx -V で確認することができます。 # ただし、--with-openssl の値は /usr/local/src/openssl-1.1.1d にしてください。 $ sudo ./configure --with-http_ssl_module --with-openssl=/usr/local/src/openssl-1.1.1d --add-module=/root/./incubator-pagespeed-ngx-latest-stable --with-cc=/opt/rh/devtoolset-2/root/usr/bin/gcc --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_addition_module --without-http_userid_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module --with-http_v2_module --with-http_gzip_static_module --with-http_gunzip_module --with-mail_ssl_module $ sudo make $ sudo make install (4) ...