File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
content/zh-cn/docs/reference/access-authn-authz Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ Kubernetes 提供了内置的签名者,每个签名者都有一个众所周知
286
286
1 . 允许/不允许 CA 位:不允许。
287
287
288
288
<!--
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
290
290
may honor client certificates signed by it. The stable CertificateSigningRequest API (version `certificates.k8s.io/v1` and later)
291
291
does not allow to set the `signerName` as `kubernetes.io/legacy-unknown`.
292
292
Never auto-approved by {{< glossary_tooltip term_id="kube-controller-manager" >}}.
@@ -471,14 +471,18 @@ Some points to note:
471
471
- `usages` has to be '`client auth`'
472
472
- `expirationSeconds` could be made longer (i.e. `864000` for ten days) or shorter (i.e. `3600` for one hour)
473
473
- `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:
475
475
-->
476
476
需要注意的几点:
477
477
478
478
- ` usage ` 字段必须是 '` client auth ` '
479
479
- ` expirationSeconds ` 可以设置为更长(例如 ` 864000 ` 是十天)或者更短(例如 ` 3600 ` 是一个小时)
480
480
- ` request ` 字段是 CSR 文件内容的 base64 编码值。
481
- 要得到该值,可以执行命令 ` cat myuser.csr | base64 | tr -d "\n" ` 。
481
+ 要得到该值,可以执行命令
482
+
483
+ ``` shell
484
+ cat myuser.csr | base64 | tr -d " \n"
485
+ ```
482
486
483
487
<!--
484
488
### Approve certificate signing request
You can’t perform that action at this time.
0 commit comments