liveBook · Manning

X.509 certificate

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

An X.509 certificate is a standardized digital certificate format used to bind an identity to a public key.

An X.509 certificate authenticates a Kubernetes user to the API server. kubectl presents a signed client certificate stored in kubeconfig; the server verifies it against Kubernetes’ built-in certificate authority and maps the request to a username. section 3.1

For Kubernetes administration and CKA preparation, distinguish these operational points:

  • Use client certificates for typical human requests made with kubectl. section 3.1
  • Treat authentication and authorization separately: the certificate proves identity, while RBAC determines permitted actions such as listing pods. section 3.1
  • Contrast user certificates with Service Account tokens, which authenticate pod-to-API-server requests. section 3.1
Figure 3.1 Using a certificate and token to access the Kubernetes API
figure

Trace how a certificate and token provide access to the Kubernetes API. section 3.1

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

How deep it goes
Explains signed certificates, kubeconfig storage, certificate authorities, API verification, and the distinction from Service Account tokens.
Examples
Uses kubectl access to list kube-system pods and illustrates certificate-based API access alongside token-based access.
What you can do after
Operate kubectl with certificate-based user authentication and distinguish it from pod authentication using Service Account tokens.
How it connects
Connects X.509 certificates with kubectl, kubeconfig, API server authentication, RBAC, and Service Accounts.

Also explained in

Compare how 3 books explain X.509 certificate →

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.