diff --git a/content/zh/docs/reference/access-authn-authz/certificate-signing-requests.md b/content/zh/docs/reference/access-authn-authz/certificate-signing-requests.md index cd82025d19..0fc00ced00 100644 --- a/content/zh/docs/reference/access-authn-authz/certificate-signing-requests.md +++ b/content/zh/docs/reference/access-authn-authz/certificate-signing-requests.md @@ -3,7 +3,7 @@ title: 证书签名请求 content_type: concept weight: 20 --- - -证书 API 支持 -[X.509](https://www.itu.int/rec/T-REC-X.509) +证书 API 支持 +[X.509](https://www.itu.int/rec/T-REC-X.509) 的自动化配置, 它为 Kubernetes API 的客户端提供一个编程接口, -用于从证书颁发机构(CA)请求并获取 X.509 +用于从证书颁发机构(CA)请求并获取 X.509 {{< glossary_tooltip term_id="certificate" text="证书" >}}。 CertificateSigningRequest(CSR)资源用来向指定的签名者申请证书签名, @@ -41,7 +41,7 @@ CertificateSigningRequest(CSR)资源用来向指定的签名者申请证书 - @@ -83,13 +83,13 @@ which tells the configured signer that it must not sign the request. 这就相当于通知了指定的签名者,这个证书不能签名。 @@ -100,8 +100,8 @@ The CertificateSigningRequest `status.certificate` field is empty until the sign 此时,字段 `status.certificate` 要么为空,要么包含一个用 PEM 编码的 X.509 证书。 直到签名完成前,CertificateSigningRequest 的字段 `status.certificate` 都为空。 - @@ -147,18 +147,18 @@ This includes: 以便客户端可以预期到他们的 CSR 将发生什么。 此类信息包括: - 1. **信任分发**:信任(CA 证书包)是如何分发的。 @@ -171,7 +171,7 @@ This includes: 以及签名者决定的过期时间与 CSR `spec.expirationSeconds` 字段不同时的应对手段。 6. **允许/不允许 CA 位**:当 CSR 包含一个签名者并不允许的 CA 证书的请求时,相应的应对手段。 - ### 创建 CertificateSigningRequest {#create-certificatesigningrequest} @@ -480,7 +480,7 @@ spec: EOF ``` - 批准 CSR: @@ -521,7 +521,7 @@ Approve the CSR: kubectl certificate approve myuser ``` - 下面是为这个新用户创建 RoleBinding 的示例命令: @@ -576,7 +576,7 @@ This is a sample command to create a RoleBinding for this new user: kubectl create rolebinding developer-binding-myuser --role=developer --user=myuser ``` - 然后,你需要添加上下文: @@ -604,7 +604,7 @@ Then, you need to add the context: kubectl config set-context myuser --cluster=kubernetes --user=myuser ``` - 来测试一下,把上下文切换为 `myuser`: @@ -613,7 +613,7 @@ To test it, change the context to `myuser`: kubectl config use-context myuser ``` - 同样地,驳回一个 CSR: @@ -663,7 +663,7 @@ Likewise, to deny a CSR: kubectl certificate deny ``` - 驳回(`Denied`)的 CRS: @@ -717,7 +717,7 @@ status: type: Denied ``` -