[zh] Resync certificate-signing-requests.md

pull/39202/head
zhuzhenghao 2023-02-01 16:23:46 +08:00
parent 1ff44a970e
commit 0305f18d17
1 changed files with 7 additions and 3 deletions

View File

@ -471,14 +471,18 @@ Some points to note:
- `usages` has to be '`client auth`' - `usages` has to be '`client auth`'
- `expirationSeconds` could be made longer (i.e. `864000` for ten days) or shorter (i.e. `3600` for one hour) - `expirationSeconds` could be made longer (i.e. `864000` for ten days) or shorter (i.e. `3600` for one hour)
- `request` is the base64 encoded value of the CSR file content. - `request` is the base64 encoded value of the CSR file content.
You can get the content using this command: ```cat myuser.csr | base64 | tr -d "\n"``` You can get the content using this command:
--> -->
需要注意的几点: 需要注意的几点:
- `usage` 字段必须是 '`client auth`' - `usage` 字段必须是 '`client auth`'
- `expirationSeconds` 可以设置为更长(例如 `864000` 是十天)或者更短(例如 `3600` 是一个小时) - `expirationSeconds` 可以设置为更长(例如 `864000` 是十天)或者更短(例如 `3600` 是一个小时)
- `request` 字段是 CSR 文件内容的 base64 编码值。 - `request` 字段是 CSR 文件内容的 base64 编码值。
要得到该值,可以执行命令 `cat myuser.csr | base64 | tr -d "\n"` 要得到该值,可以执行命令
```shell
cat myuser.csr | base64 | tr -d "\n"
```
<!-- <!--
### Approve certificate signing request ### Approve certificate signing request