知识库
并发编程
  • 分类
  • 标签
  • 归档
友情连接

luoliang

吾生也有涯,知也无涯
并发编程
  • 分类
  • 标签
  • 归档
友情连接
  • 免费证书申请acme.sh

    • 安装acme.sh
      • 设置默认的证书
        • 申请证书
        weiluoliang
        2023-10-31
        随笔
        目录

        免费证书申请acme.sh

        官网: https://github.com/acmesh-official/acme.sh

        # 安装acme.sh

        curl https://get.acme.sh | sh -s email=my@example.com
        
        1

        # 设置默认的证书

        acme.sh/acme.sh --set-default-ca --server letsencrypt
        
        
        
        
        1
        2
        3
        4

        # 申请证书

        # 方式1 独立启动一个服务器验证
        acme.sh --issue -d example.com --standalone
        
        # 方式2 假如你已经启动了一个web服务并且是80端口,你指向你的站点根目录
        acme.sh --issue -d example.com -w /home/wwwroot/example.com
        
        # 按照后安装到某个位置
        acme.sh --installcert -d example.com   \
                --key-file   /etc/nginx/certs/example.com/server.key \
                --fullchain-file /etc/nginx/certs/example.com/server.crt 
        
        # 手动续期,正常情况下你不需要操作,脚本60天会自动续期,你也可以强制手动刷新
        acme.sh --renew -d example.com --force
        
        
        1
        2
        3
        4
        5
        6
        7
        8
        9
        10
        11
        12
        13
        14
        上次更新: 2024/08/21, 15:41:10
        最近更新
        01
        Linux常用命令
        09-04
        02
        SpringBoot启动脚本
        08-31
        03
        安装监控grafana
        08-30
        更多文章>
        Theme by Vdoing | Copyright © 2022-2024 Evan Xu | MIT License
        • 跟随系统
        • 浅色模式
        • 深色模式
        • 阅读模式