liveBook · Manning

Certificate signing request

As explained in Acing the Certified Kubernetes Administrator Exam, Second Edition

A Kubernetes CertificateSigningRequest is an API resource containing a requested certificate and the information needed to approve and issue it.

A CertificateSigningRequest (CSR) is a Kubernetes API resource containing a requested client certificate and the identity information used to authenticate with the Kubernetes API. The certificate common name identifies the user, while organization or groups identify group membership. section 3.2 section 3.4

Create and use a CSR through this administrator workflow:

  • Generate a private key, then create a CSR with OpenSSL; encode the CSR as base64 for the Kubernetes manifest. section 3.2
  • Check the request with kubectl get csr; a newly created request remains Pending until an administrator approves it. section 3.2

Create and approve Carol's client certificate

A request using CN=carol, organization developers, signerName kubernetes.io/kube-apiserver-client, and client auth usage produces a certificate for the carol user. After approval, install the issued certificate in kubeconfig and use the carol context; RBAC allows permitted pod reads but rejects pod deletion.

How Acing the Certified Kubernetes Administrator Exam, Second Edition covers it

How deep it goes
Explains key and CSR generation, manifest fields, approval, issuance, extraction, kubeconfig use, and authorization verification.
Examples
Uses OpenSSL commands, a Carol CSR manifest, kubectl approval, certificate extraction, kubeconfig contexts, and pod permission checks.
What it assumes
Assumes basic Kubernetes resources and RBAC concepts while teaching certificate-based user creation from private key generation onward.
What you can do after
Build it from scratch with OpenSSL and kubectl, then verify certificate issuance, kubeconfig authentication, and RBAC behavior.
How it connects
Connects client certificates with users, groups, kubeconfig, the Kubernetes API server, and RBAC roles and bindings.

Also explained in

Compare how 2 books explain certificate signing request →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the Certified Kubernetes Administrator Exam, Second Edition. The section links point to the parts of the book it draws on.