diff options
author | Silvino Silva <silvino@bk.ru> | 2016-10-03 18:45:10 +0100 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2016-10-03 18:45:10 +0100 |
commit | 44f7d00ad1d32bae79bca07ee5958a3da163c6e5 (patch) | |
tree | 0a7c605a23e80853af8985e838a7f4f7d98a3d8c /tools/nginx.html | |
parent | dc2392c0420d3e25771a4bc1967ae97cba16194d (diff) | |
parent | cd136e5c6bb718bbc5b3ba9e1edcf883d58bded7 (diff) | |
download | doc-44f7d00ad1d32bae79bca07ee5958a3da163c6e5.tar.gz |
Merge branch 'f-certs' into r-0.2.3
Diffstat (limited to 'tools/nginx.html')
-rw-r--r-- | tools/nginx.html | 41 |
1 files changed, 30 insertions, 11 deletions
diff --git a/tools/nginx.html b/tools/nginx.html index 9fd38b9..3daf8d5 100644 --- a/tools/nginx.html +++ b/tools/nginx.html @@ -88,6 +88,25 @@ $ </pre> + <p>Having password is a good idea, but requires it every + time nginx is restarted. To remove;</p> + + <pre> + $ sudo cp /etc/ssl/keys/nginx.key /etc/ssl/keys/nginx.key.pass + $ sudo openssl rsa -in /etc/ssl/keys/nginx.key.pass -out /etc/ssl/keys/nginx.key + </pre> + + <pre> + Enter pass phrase for /etc/ssl/keys/nginx.key.pass: + writing RSA key + </pre> + + <pre> + $ sudo chown nginx /etc/ssl/keys/nginx.key* + $ sudo chmod 0600 /etc/ssl/keys/nginx.key* + # chmod 644 /etc/ssl/certs/exim.cert + </pre> + <p>Sign SSL cetificate;</p> <pre> @@ -96,23 +115,17 @@ -signkey /etc/ssl/keys/nginx.key \ -out /etc/ssl/certs/nginx.crt </pre> + Signature ok subject=/C=PT/ST=Some-State/O=Internet Widgits Pty Ltd/CN=core.privat-network.net Getting Private key Enter pass phrase for /etc/ssl/keys/nginx.key: </pre> - <p>Having password is a good idea, but requires it every - time nginx is restarted. To remove;</p> - - <pre> - $ sudo cp /etc/ssl/keys/nginx.key /etc/ssl/keys/nginx.key.pass - $ sudo openssl rsa -in /etc/ssl/keys/nginx.key.pass -out /etc/ssl/keys/nginx.key - </pre> - <pre> - Enter pass phrase for /etc/ssl/keys/nginx.key.org: - writing RSA key + $ sudo chown nginx:nginx /etc/ssl/keys/nginx.key* + $ sudo chmod 0600 /etc/ssl/keys/nginx.key* + $ sudo chmod 644 /etc/ssl/certs/nginx.cert </pre> <h2 id="nginxconf">3. Nginx Configuration</h2> @@ -219,12 +232,18 @@ <p>Check <a href="conf/etc/nginx/sites/">/etc/nginx/sites</a> for more examples.</p> + <p>To debug configurations check logs and;</p> + + <pre> + + </pre> + <h3>4.1. Setup PHP</h3> <p> Install php and setup php.ini as development mode;</p> <pre> - $ prt-get depinst php php-fpm php-gd + $ sudo prt-get depinst php php-fpm php-gd php-pdo-pgsql php-postgresql </pre> <p>Setup php ini in development mode;<p/> |