aboutsummaryrefslogtreecommitdiffstats
path: root/tools/nginx.html
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2016-10-03 18:35:05 +0100
committerSilvino Silva <silvino@bk.ru>2016-10-03 18:35:05 +0100
commitcd136e5c6bb718bbc5b3ba9e1edcf883d58bded7 (patch)
tree0a7c605a23e80853af8985e838a7f4f7d98a3d8c /tools/nginx.html
parent6343ecacd941a133d01bf9354adf6b79a0a0cb3d (diff)
downloaddoc-cd136e5c6bb718bbc5b3ba9e1edcf883d58bded7.tar.gz
review certificates for exim, nginx and postgresql
Diffstat (limited to 'tools/nginx.html')
-rw-r--r--tools/nginx.html39
1 files changed, 29 insertions, 10 deletions
diff --git a/tools/nginx.html b/tools/nginx.html
index 765a13f..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,6 +232,12 @@
<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>