# ACME.SH签发Google SSL

### 1.在GCP Shell启用账户的`API`

```
 gcloud beta publicca external-account-keys create
```

### 2.`ACME.SH` install

```
curl https://get.acme.sh | sh -s email=your email address
```

`your emaill address`替换成你的email

### 3.(可选)acme.sh写入`PATH`

```
echo 'export PATH="$HOME/.acme.sh:$PATH"' >> ~/.bashrc
```

应用`bashrc`文件

```
source ~/.bashrc
```

### 4.CA设置为`Google`的server

```
acme.sh--set-default-ca --server google
```

### 5.准备工作1

```
acme.sh --register-account -m 刚刚申请key的谷歌账号邮箱 --server google \
        --eab-kid xxxxxx \
        --eab-hmac-key xxxxxxxx
```

将获取的kid和key应用进去以及Google账户的gmail地址

### 6.准备工作2

我们假设您使用的Cloudflare管理您的Domain的Dns解析

请登陆Cloudflare的控制台创建您的API Token,

```
export CF_Token="xxxxxxxxxxx"
export CF_Account_ID="xxxxxxxxxxxxx"
```

也请将您的`Token`和`Account_ID`导入Shell 7.签发证书

```
acme.sh --issue --dns dns_cf -d example.com -d *.example.com
```

`example.com`和`*.example.com`

还请换成自己的Domain和要签发的子域名

### 7.获取签发证书

```
acme.sh --install-cert -d example.com \
--key-file       /your_path/example.key  \
--fullchain-file /your_path/example.crt
```

自行替换`your_path`文件路径,字段

`example.com`欲要申请的Domain和要签发的子域名

### 8.（可选）若遇服务商要求提供CA证书可在签发路径下通过`tail`截取CA片段,这里我输出为`ca-cert.crt`文件

```
tail -n +$(grep -n "END CERTIFICATE" www.example.com.crt | head -1 | cut -d: -f1) www.example.com.crt > ca-cert.crt
```

#### &#x20;Music

Once in a Dream-In the City

{% embed url="<https://music.apple.com/jp/album/once-in-a-dream/1498097839?i=1498097841>" %}

初识这个music来自.近期看了My Pride（你可以在Youtube自行查找活得该anime,目前我不知道国内是否有译制此片，但是你可通过现在的AI插件进行字母翻译,便于您了解讲述的故事.2019年加拿大的制作者们制作了此片,目前发起者生成由于资金链中断等原因,第二季的制作迟迟没有发布.\
但是讲了一个很好的故事,而此音乐变在此片中出现.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://blog.jsmsr.com/blog/acme.sh-qian-fa-google-ssl.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
