惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Fortinet All Blogs
Last Week in AI
Last Week in AI
IT之家
IT之家
A
About on SuperTechFans
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
博客园 - 【当耐特】
V
Visual Studio Blog
Microsoft Security Blog
Microsoft Security Blog
博客园_首页
aimingoo的专栏
aimingoo的专栏
The Cloudflare Blog
Vercel News
Vercel News
博客园 - Franky
有赞技术团队
有赞技术团队
B
Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
GbyAI
GbyAI
量子位
云风的 BLOG
云风的 BLOG
T
Tailwind CSS Blog

泠泫凝的异次元空间

通过串口安装Linux | 泠泫凝的异次元空间 curl自编译 | 泠泫凝的异次元空间 Minecraft 认证服务器代理 | 泠泫凝的异次元空间 飞塔分流配置实战 | 泠泫凝的异次元空间 Windows 安全启动证书检查 | 泠泫凝的异次元空间 Lxn-OneDriveCLI | 泠泫凝的异次元空间 华三交换机配置 ERPS 环网 | 泠泫凝的异次元空间 PVE 配置 VLAN 感知 | 泠泫凝的异次元空间 MT7922 无线网卡安装 | 泠泫凝的异次元空间 无显示输出 Linux 主机配置桌面显示 | 泠泫凝的异次元空间 Wireguard 部署 SOP 手册(自用) | 泠泫凝的异次元空间 Zabbix 7.4 通过钉钉发送告警提醒 | 泠泫凝的异次元空间 Debian with xfce 通过 VNC 共享屏幕 华三S6860 IRF堆叠 | 泠泫凝的异次元空间 iPad 应用侧载 | 泠泫凝的异次元空间 Smart DNS 分区解析 | 泠泫凝的异次元空间 建立 NFS 服务器并挂载到客户端 | 泠泫凝的异次元空间 将 Android 以 MTP 方式连接至 Debian PVE 虚拟机迁移至 vCenter | 泠泫凝的异次元空间 vCenter 虚拟机迁移至 PVE | 泠泫凝的异次元空间 PVE迁移时提示密钥验证失败 | 泠泫凝的异次元空间 修改Windows设备设置区域 | 泠泫凝的异次元空间 恢复 SecureCRT 7.x 保存的密码 | 泠泫凝的异次元空间 PVE 超融合下电与上电流程 | 泠泫凝的异次元空间 记一次Zabbix异常处理 | 泠泫凝的异次元空间 苹果设备保存SHSH2 | 泠泫凝的异次元空间 PVE超融合部署 | 泠泫凝的异次元空间 树莓派启用zram | 泠泫凝的异次元空间 在 Hyper-V 上安装 EVE-NG | 泠泫凝的异次元空间 Zabbix 部署与 Windows 硬件信息收集 | 泠泫凝的异次元空间
申请 Google 的免费证书 | 泠泫凝的异次元空间
Lxn's Area · 2022-05-28 · via 泠泫凝的异次元空间

申请 Google 免费 SSL 证书全流程。

申请准备

首先打开 Google 首页,登录你的 Google 账号,随后转到 Google Cloud Platform 并新建一个 Google Cloud Project (如果需要)。

在保持登录的状态下打开 申请表单 并填写,等待 Google 给你发送邮件。

获得 Google Cloud Project ID

打开 https://console.cloud.google.com/apis/dashboard ,点击左上角你的项目名称,随后即可在弹出的列表中查看到你的 Project ID 。

获得 Account Key

启用API

打开如下链接,启用 API ,其中<Project ID>填写你刚才申请时使用的 Project ID 即可。

1
https://console.cloud.google.com/apis/library/publicca.googleapis.com?project=<Project ID>

打开该链接后点击“启用”,随后等待右侧出现“API已启用”则可以关闭该页。

申请Key

随后打开“Google Cloud Shell”(在右上角点击激活CloudShell图标)。

等待分配完成后在 Shell 窗口内输入如下命令:

1
2
gcloud config set project <Project ID>
gcloud beta publicca external-account-keys create

此时会弹出“为 Cloud Shell 提供授权”,点击授权即可。

执行完成后会返回类似如下输出;注意不要在没有收到 Google 的邮件时执行该命令,会返回命令不存在。

1
2
3
Created an external account key
[b64MacKey: xxx
keyId: xxx]

申请证书

安装 ACME

执行如下命令自动安装,注意替换自己的邮箱

1
curl https://get.acme.sh | sh -s email=<EMAIL>

注册账户

1
2
3
acme.sh --register-account -m <EMAIL> --server google \
--eab-kid xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx \
--eab-hmac-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

签发证书

1
2
3
4
acme.sh -f --server google --issue \
-d test.domain \
-w "/home/root/web/certs/main" \
--reloadcmd "/etc/init.d/nginx reload"

如果想要 ECC 证书可以指定 key 类型。

安装证书

1
2
3
4
acme.sh -f --server google --issue \
-d test.domain --keylength ec-256\
-w "/home/root/web/certs/main" \
--reloadcmd "/etc/init.d/nginx reload"
  • -w参数指定证书输出位置;
  • --reloadcmd指定重启指令,如果你用的是 Apache2 还需要自行替换。

 上一篇

Network Cloudflare