kumiskiri

Instal Let's Encrypt Acme.sh Openlitespeed - kumiskiri

Jun 16th, 2023 (edited)
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.95 KB | Source Code | 0 0
  1. 1. Instal Let's Encrypt Acme.sh Openlitespeed
  2.  
  3. Choose One Method
  4.  
  5. Curl method
  6.  
  7. curl https://get.acme.sh | sh
  8.  
  9. Wget Method
  10.  
  11. wget -O - https://get.acme.sh | sh
  12.  
  13. Git Method
  14.  
  15. git clone https://github.com/acmesh-official/acme.sh.git
  16. cd ./acme.sh
  17. ./acme.sh --install
  18.  
  19. 2. Issuing the Let's Encrypt Acme.sh Certificate
  20.  
  21. Here's a guide on what to do:
  22.  
  23. source ~/.bashrc
  24.  
  25. acme.sh --version
  26.  
  27. /root/.acme.sh/acme.sh --set-default-ca --server letsencrypt
  28.  
  29. domain="yourdomain.com" ; /root/.acme.sh/acme.sh --issue -d "$domain" -d www."$domain" -w /usr/local/lsws/Example/html/wordpress/ (Customize Directory path)
  30.  
  31. Wait for the process to complete.
  32.  
  33. 3. Automatically Update Let's Encrypt Acme.sh Certificate
  34.  
  35. One of the reasons to use Acme.sh is its ability to automatically extend the certificate's validity period.
  36.  
  37. acme.sh --renew -d namadomain.com --force
  38.  
  39. or
  40.  
  41. acme.sh --renew -d namadomain.com --force --ecc
  42.  
  43. Wait for the process to complete.
Advertisement
Add Comment
Please, Sign In to add comment