Advertisement
rodro1

Real ssl install on nginx

Jun 24th, 2021
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. Deploy Node
  2.  
  3. https://www.youtube.com/watch?v=1OU5ngq-WyM&list=PLQlWzK5tU-gDyxC1JTpyC2avvJlt3hrIh
  4. https://www.youtube.com/watch?v=d4QDyHLHZ9c&t=659s
  5.  
  6. Step 1:
  7. ===============
  8. yum -y install epel-release^C // install if not installed
  9. Step 2:
  10. ===============
  11. yum -y install certbot
  12.  
  13. Step 3:
  14. ===============
  15. certbot certonly --standalone -d abc-alumni.org // standalone means they use their webserver
  16.  
  17. certbot certonly --standalone -d bn.thepostman24.com
  18.  
  19. Step 4:
  20. ==============
  21. ssl key: (link them on config)
  22. =========
  23. /etc/letsencrypt/live/abc-alumni.org/fullchain.pem
  24. key: /etc/letsencrypt/live/abc-alumni.org/privkey.pem
  25.  
  26.  
  27. /etc/letsencrypt/live/bn.thepostman24.com/fullchain.pem
  28.  
  29.  
  30.  
  31.  
  32. Step 4: ( NOT NECCESSARY IF YOU WANT TO BACKUP)
  33. cp -r copy_folder copy_to_folder
  34. tar czf name.tar.gz folder_name // zip file
  35.  
  36. https://ssl-config.mozilla.org/ // best config ssl genarator
  37.  
  38.  
  39. server version
  40. ========
  41. nginx -v
  42.  
  43.  
  44.  
  45. Reniew:
  46. ==========
  47. crontab -e
  48. 0 12 * * * /usr/bin/certbot renew --quiet
  49.  
  50.  
  51.  
  52.  
  53. Problem binding to port 80: Could not bind to IPv4 or IPv6.
  54. sudo systemctl stop nginx
  55. sudo systemctl start nginx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement