liunx系统更新命令和申请SSL 证书

vps评测 教程评论阅读模式

 文章源自柯基博客-https://www.vpspce.com/346.html

更新及安装组件Debian/Ubuntu 命令

  1. apt update -y
  2. apt install -y curl
  3. apt install -y socat

 文章源自柯基博客-https://www.vpspce.com/346.html

更新及安装组件CentOS 命令

  1. yum update -
  2. yum install -y curl 
  3. yum install -y socat 

 

安装 Acme 脚本

  1. curl https://get.acme.sh | sh

证书申请

自行更换代码中的域名、邮箱为你解析的域名及邮箱

  1. ~/.acme.sh/acme.sh --register-account -m 123@qq.com   #申请账号
  2. ~/.acme.sh/acme.sh --issue -d vpspce.com --standalone   #安装证书
  3.  acme.sh --renew -d vpspce.com --force   #更新证书 (证书会自动更新,60天更新一次)

安装证书到指定文件夹

  • ~/.acme.sh/acme.sh --installcert -d vpspce.com --key-file /root/private.key --fullchain-file /root/cert.crt

文章末尾固定信息

weinxin
我的微信
微信扫一扫
 
vps评测
  • 本文由 vps评测 发表于 2022-01-21 15:00:29
  • 转载请务必保留本文链接:https://www.vpspce.com/346.html
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: