Difference between revisions of "SELinux,Fail2ban,Security Configurations"

From Rhomicom Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 67: Line 67:
 
   OR certbot --apache
 
   OR certbot --apache
 
   certbot --apache -d wiki.rhomicom.com
 
   certbot --apache -d wiki.rhomicom.com
−
   certbot --nginx-d wiki.rhomicom.com
+
   certbot --nginx -d wiki.rhomicom.com
  
 
   certbot renew
 
   certbot renew
Line 73: Line 73:
 
   certbot certonly --apache
 
   certbot certonly --apache
 
   certbot certonly --nginx
 
   certbot certonly --nginx
 +
  sudo certbot certonly --standalone --debug -d api.example.net
  
 
   echo "0 0,12 * * * root python3 -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew -q" | sudo tee -a /etc/crontab > /dev/null
 
   echo "0 0,12 * * * root python3 -c 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew -q" | sudo tee -a /etc/crontab > /dev/null
 +
  @daily /usr/bin/certbot renew >> /var/log/le-renew.log
 +
  0 1  * * * dnf -y update
 +
  0 */5 * * * /home/all_bkps.sh
  
 
==SELF-SIGNED SSL==
 
==SELF-SIGNED SSL==
Line 84: Line 88:
 
openssl req -newkey rsa:4096 -nodes -keyout /etc/pki/nginx/private/server.key -x509 -days 365 -out /etc/pki/nginx/server.crt -subj "/C=GH/ST=Greater Accra/L=Accra/O=Rhomicom Demo/OU=IT/CN=*.rhomicom.com/[email protected]"
 
openssl req -newkey rsa:4096 -nodes -keyout /etc/pki/nginx/private/server.key -x509 -days 365 -out /etc/pki/nginx/server.crt -subj "/C=GH/ST=Greater Accra/L=Accra/O=Rhomicom Demo/OU=IT/CN=*.rhomicom.com/[email protected]"
  
−
</syntaxhighlight><span> </span>
+
</syntaxhighlight>
 +
<syntaxhighlight lang="shell">
 +
openssl req -newkey rsa:4096 -nodes -keyout /etc/ssl/private/nginx-selfsigned.key -x509 -days 36