xcert.sh 498 B

12345678910111213141516171819
  1. #!/bin/bash
  2. echo start
  3. sleep 0.5
  4. source /var/lib/premium-script/ipvps.conf
  5. domain=$IP
  6. systemctl stop xray
  7. systemctl stop xray@none
  8. systemctl stop xray@vless
  9. systemctl stop xray@vnone
  10. /root/.acme.sh/acme.sh --issue -d $domain --standalone -k ec-256
  11. ~/.acme.sh/acme.sh --installcert -d $domain --fullchainpath /etc/xray/xray.crt --keypath /etc/xray/xray.key --ecc
  12. systemctl start xray
  13. systemctl start xray@none
  14. systemctl start xray@vless
  15. systemctl start xray@vnone
  16. echo Done
  17. sleep 0.5
  18. clear
  19. neofetch