2024最新S-UI面板

1、关闭防火墙

sudo ufw disable

2、一键安装脚本

bash <(curl -Ls https://raw.githubusercontent.com/alireza0/s-ui/master/install.sh)

3、申请证书 - 安装certbot

sudo apt-get update
sudo apt-get install certbot

4、运行命令 - 申请证书

sudo certbot certonly --manual --preferred-challenges dns -d xxx.bookstreet.top

5、输入email

6、输入A 同意。

7、您是否愿意与电子前沿基金会(Let's Encrypt 项目的创始合伙人之一,也是开发 Certbot 的非营利组织)分享您的电子邮件地址?我们希望向您发送有关我们加密网络的工作、EFF 新闻、活动以及支持数字自由的方式的电子邮件。
选择N

8、注意:此机器的 IP 将被公开记录为已请求此证书。如果您在非您的服务器的机器上以手动模式运行 certbot,请确保您同意这一点。
选择Y

这是最重要的一步:输入DNS TXT记录:_acme-challenge.xxx.bookstreet.top
值为:7Wp53OOe_vrytJUrRgorIQxxfs3NcRey4Ifxzhupc5I
然后按Enter 继续。

等待片刻,申请成功,出现信息:

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/xxx.bookstreet.top/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/xxx.bookstreet.top/privkey.pem
   Your cert will expire on 2024-11-30. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot
   again. To non-interactively renew *all* of your certificates, run
   "certbot renew"
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

证书文件路径:/etc/letsencrypt/live/xxx.bookstreet.top/fullchain.pem
密钥文件路径:/etc/letsencrypt/live/xxx.bookstreet.top/privkey.pem

9、进入管理后台的左侧最下面的设置页面,在右侧输入正确的端口、域名、证书路径、密钥的路径,然后保存,重启。

10、最后在浏览器地址栏输入https://xxx.bookstreet.top:端口号/路径