cert.sh 485 B

123456789101112131415161718
  1. #!/bin/bash
  2. red='\e[1;31m'
  3. green='\e[0;32m'
  4. NC='\e[0m'
  5. MYIP=$(wget -qO- https://icanhazip.com);
  6. echo "Checking VPS"
  7. clear
  8. echo start
  9. sleep 0.5
  10. source /var/lib/premium-script/ipvps.conf
  11. domain=$IP
  12. systemctl stop v2ray
  13. systemctl stop v2ray@none
  14. /root/.acme.sh/acme.sh --issue -d $domain --standalone -k ec-256
  15. ~/.acme.sh/acme.sh --installcert -d $domain --fullchainpath /etc/v2ray/v2ray.crt --keypath /etc/v2ray/v2ray.key --ecc
  16. systemctl start v2ray
  17. systemctl start v2ray@none
  18. echo Done