LoginSignup
9
9

More than 5 years have passed since last update.

NginxとLibreSSLを組み合わせて使用する

Last updated at Posted at 2014-08-14

環境

OS - CentOS7
Nginx - nginx-1.7.9
Libressl - libressl-2.1.3

1. ソース

ls
# ls -l nginx-1.7.9.tar.gz libressl-2.1.3.tar.gz
-rw-r--r-- 1 root root 2847182 Jan 22 09:38 libressl-2.1.3.tar.gz
-rw-r--r-- 1 root root  827263 Dec 24 00:38 nginx-1.7.9.tar.gz

2. libressl の make

make
# LVERSION=2.1.3
# tar xzf libressl-${LVERSION}.tar.gz && cd libressl-${LVERSION}
# ./configure
# make

3. nginx の make

make
# cd ..
# NVERSION=1.7.9
# tar xzf nginx-${NVERSION}.tar.gz && cd nginx-${NVERSION}
# ./configure --prefix=/usr/local/nginx-${NVERSION} --with-openssl=../libressl-${LVERSION}
# make

4. 確認

nginx
# objs/nginx -V
nginx version: nginx/1.7.9
built by gcc 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) 
configure arguments: --prefix=/usr/local/nginx-1.7.9 --with-openssl=../libressl-2.1.3
9
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9