Skip to content

Commit 4bafa46

Browse files
authored
Merge pull request #39202 from Zhuzhenghao/fix/certificate-signing-requests
[zh] Resync certificate-signing-requests.md
2 parents 0d80480 + 0305f18 commit 4bafa46

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

content/zh-cn/docs/reference/access-authn-authz/certificate-signing-requests.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ Kubernetes 提供了内置的签名者,每个签名者都有一个众所周知
286286
1. 允许/不允许 CA 位:不允许。
287287

288288
<!--
289-
1. `kubernetes.io/legacy-unknown`: has no guarantees for trust at all. Some third-party distributions of Kubernetes
289+
1. `kubernetes.io/legacy-unknown`: has no guarantees for trust at all. Some third-party distributions of Kubernetes
290290
may honor client certificates signed by it. The stable CertificateSigningRequest API (version `certificates.k8s.io/v1` and later)
291291
does not allow to set the `signerName` as `kubernetes.io/legacy-unknown`.
292292
Never auto-approved by {{< glossary_tooltip term_id="kube-controller-manager" >}}.
@@ -471,14 +471,18 @@ Some points to note:
471471
- `usages` has to be '`client auth`'
472472
- `expirationSeconds` could be made longer (i.e. `864000` for ten days) or shorter (i.e. `3600` for one hour)
473473
- `request` is the base64 encoded value of the CSR file content.
474-
You can get the content using this command: ```cat myuser.csr | base64 | tr -d "\n"```
474+
You can get the content using this command:
475475
-->
476476
需要注意的几点:
477477

478478
- `usage` 字段必须是 '`client auth`'
479479
- `expirationSeconds` 可以设置为更长(例如 `864000` 是十天)或者更短(例如 `3600` 是一个小时)
480480
- `request` 字段是 CSR 文件内容的 base64 编码值。
481-
要得到该值,可以执行命令 `cat myuser.csr | base64 | tr -d "\n"`
481+
要得到该值,可以执行命令
482+
483+
```shell
484+
cat myuser.csr | base64 | tr -d "\n"
485+
```
482486

483487
<!--
484488
### Approve certificate signing request

0 commit comments

Comments
 (0)