# cert-manager quiz questions

> 78 multiple-choice questions on Certificates, Issuers, ACME challenges, renewal and trust distribution, with answers and explanations.

Quiz page: https://k8wiz.com/cert-manager/difficulty

## Beginner (Easy): 24 questions

Interactive quiz: https://k8wiz.com/cert-manager/quiz/easy

### What is cert-manager?

cert-manager, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-cert-manager

- A. A Kubernetes controller for managing TLS certificates
- B. A tool for generating self-signed certificates
- C. A certificate authority service
- D. A web-based certificate management interface

**Answer:** A Kubernetes controller for managing TLS certificates

**Explanation:** cert-manager is a Kubernetes native certificate management controller that helps with issuing certificates from various sources like Let's Encrypt, HashiCorp Vault, Venafi, or a simple signing key pair. It ensures certificates are valid and up-to-date, and attempts to renew certificates at a configured time before expiry.

### Which Custom Resource Definition (CRD) is used to define a certificate in cert-manager?

cert-manager, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/which-custom-resource-definition-crd-is-used-to-define-a-certificate-in-cert-manager

- A. Certificate
- B. CertificateRequest
- C. TLSCertificate
- D. CertificateDefinition

**Answer:** Certificate

**Explanation:** The 'Certificate' CRD is used to define a certificate in cert-manager. It represents a human readable definition of a certificate request that is honored by an issuer.

### What is an Issuer in cert-manager?

cert-manager, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-an-issuer-in-cert-manager

- A. A component that issues certificates
- B. A Kubernetes resource that represents a certificate authority
- C. A plugin for generating certificates
- D. A service that validates certificate requests

**Answer:** A Kubernetes resource that represents a certificate authority

**Explanation:** An Issuer is a Kubernetes resource that represents a certificate authority (CA) that is able to generate signed certificates by honoring certificate signing requests. Issuers are namespaced resources, meaning they can only issue certificates within their own namespace.

### Which command is used to install cert-manager using Helm?

cert-manager, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-is-used-to-install-cert-manager-using-helm

- A. helm install cert-manager jetstack/cert-manager
- B. helm install cert-manager cert-manager/cert-manager
- C. helm install jetstack/cert-manager --namespace cert-manager
- D. helm install cert-manager jetstack/cert-manager --namespace cert-manager

**Answer:** helm install cert-manager jetstack/cert-manager --namespace cert-manager

**Explanation:** The command 'helm install cert-manager jetstack/cert-manager --namespace cert-manager' is used to install cert-manager using Helm. This installs cert-manager in the cert-manager namespace using the Jetstack Helm chart.

### What is the default duration for certificates issued by cert-manager?

cert-manager, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-the-default-duration-for-certificates-issued-by-cert-manager

- A. 30 days
- B. 90 days
- C. 180 days
- D. 365 days

**Answer:** 90 days

**Explanation:** The default duration for certificates issued by cert-manager is 90 days. This can be customized using the 'duration' field in the Certificate resource.

### Which command can be used to check the status of a Certificate resource?

cert-manager, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-can-be-used-to-check-the-status-of-a-certificate-resource

- A. kubectl describe certificate <name>
- B. kubectl get certificate <name> -o yaml
- C. kubectl status certificate <name>
- D. kubectl check certificate <name>

**Answer:** kubectl describe certificate <name>

**Explanation:** The 'kubectl describe certificate <name>' command can be used to check the status of a Certificate resource. This provides detailed information about the certificate, including its current state, events, and any issues that might be preventing it from being issued.

### What is the purpose of the 'secretName' field in a Certificate resource?

cert-manager, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-secretname-field-in-a-certificate-resource

- A. To specify the name of the Secret where the certificate will be stored
- B. To specify a secret key for encrypting the certificate
- C. To specify a secret token for authenticating with the issuer
- D. To specify a secret namespace for the certificate

**Answer:** To specify the name of the Secret where the certificate will be stored

**Explanation:** The 'secretName' field in a Certificate resource specifies the name of the Kubernetes Secret where the issued certificate, private key, and CA will be stored. This Secret can then be mounted into pods that need to use the certificate.

### What is the purpose of the 'commonName' field in a Certificate resource?

cert-manager, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-commonname-field-in-a-certificate-resource

- A. To specify the common name (CN) in the certificate subject
- B. To specify a name that is common to all certificates
- C. To specify the name of the certificate authority
- D. To specify a shared name for clustered certificates

**Answer:** To specify the common name (CN) in the certificate subject

**Explanation:** The 'commonName' field in a Certificate resource specifies the common name (CN) that will be set in the subject of the issued certificate. This is typically a domain name for web server certificates.

### Which of the following is a valid way to configure a SelfSigned issuer?

cert-manager, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/which-of-the-following-is-a-valid-way-to-configure-a-selfsigned-issuer

- A. By specifying a CA certificate and key
- B. By specifying an ACME server URL
- C. By not specifying any additional configuration
- D. By specifying a Vault server URL

**Answer:** By not specifying any additional configuration

**Explanation:** A valid way to configure a SelfSigned issuer is by not specifying any additional configuration. The SelfSigned issuer doesn't require any specific configuration as it generates self-signed certificates using the private key generated for the Certificate resource.

### Which command can be used to verify that cert-manager is running correctly?

cert-manager, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-can-be-used-to-verify-that-cert-manager-is-running-correctly

- A. kubectl get pods -n cert-manager
- B. kubectl cert-manager status
- C. kubectl verify cert-manager
- D. kubectl describe deployment cert-manager -n cert-manager

**Answer:** kubectl get pods -n cert-manager

**Explanation:** The 'kubectl get pods -n cert-manager' command can be used to verify that cert-manager is running correctly. This shows the status of the cert-manager pods, which should all be in the 'Running' state if cert-manager is functioning properly.

### Which of the following is NOT a valid way to install cert-manager?

cert-manager, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-valid-way-to-install-cert-manager

- A. Using Helm
- B. Using kubectl apply with static manifests
- C. Using the cert-manager operator
- D. Using the cert-manager installer script

**Answer:** Using the cert-manager installer script

**Explanation:** Using the cert-manager installer script is not a valid way to install cert-manager as there is no official installer script. The valid installation methods include using Helm, using kubectl apply with static manifests from the cert-manager releases, and using the cert-manager operator (though this is less common).

### What is the purpose of the 'organization' field in a Certificate resource?

cert-manager, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-organization-field-in-a-certificate-resource

- A. To specify the organization name in the certificate subject
- B. To specify which organization can use the certificate
- C. To specify the organizational unit
- D. To specify the certificate authority organization

**Answer:** To specify the organization name in the certificate subject

**Explanation:** The 'organization' field in a Certificate resource specifies the organization name that will be set in the subject of the issued certificate. This is part of the distinguished name (DN) of the certificate subject.

### What is the purpose of the 'dnsNames' field in a Certificate resource?

cert-manager, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-dnsnames-field-in-a-certificate-resource

- A. To specify the DNS names that the certificate should be valid for
- B. To specify DNS servers for validation
- C. To specify DNS zones for the certificate
- D. To specify DNS records to create

**Answer:** To specify the DNS names that the certificate should be valid for

**Explanation:** The 'dnsNames' field in a Certificate resource specifies the DNS names (Subject Alternative Names) that the certificate should be valid for. These are typically domain names for which the certificate will be used, such as 'example.com' or '*.example.com'.

### What is the purpose of the 'issuerRef' field in a Certificate resource?

cert-manager, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-issuerref-field-in-a-certificate-resource

- A. To specify which issuer or cluster issuer should issue the certificate
- B. To reference the issuer's documentation
- C. To specify the issuer's public key
- D. To reference the issuer's certificate

**Answer:** To specify which issuer or cluster issuer should issue the certificate

**Explanation:** The 'issuerRef' field in a Certificate resource specifies which issuer or cluster issuer should issue the certificate. It includes the name of the issuer, the kind (Issuer or ClusterIssuer), and optionally the group.

### What happens when a Certificate resource is created without specifying an 'issuerRef'?

cert-manager, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-happens-when-a-certificate-resource-is-created-without-specifying-an-issuerref

- A. The certificate will not be issued
- B. A default issuer will be used
- C. A self-signed certificate will be generated
- D. An error will be returned

**Answer:** An error will be returned

**Explanation:** When a Certificate resource is created without specifying an 'issuerRef', an error will be returned. The 'issuerRef' field is required as it tells cert-manager which issuer should be used to issue the certificate.

### Which kubectl command does the cert-manager troubleshooting guide recommend as your main tool, before reading controller logs?

cert-manager, Easy (Beginner), Troubleshooting. https://k8wiz.com/uquiz/which-kubectl-command-does-the-cert-manager-troubleshooting-guide-recommend-as-your-main-tool-before-reading-controller-logs

- A. kubectl logs
- B. kubectl debug
- C. kubectl describe
- D. kubectl top

**Answer:** kubectl describe

**Explanation:** cert-manager records progress and errors as conditions and events on the Certificate, CertificateRequest, Order and Challenge it creates, and kubectl describe shows both. The guide calls the controller logs verbose and suggests reading them only when the resources don't explain the problem.

### Which cert-manager resource shows a reason such as "Waiting for dns-01 challenge propagation" while its self-check runs?

cert-manager, Easy (Beginner), Troubleshooting. https://k8wiz.com/uquiz/which-cert-manager-resource-shows-a-reason-such-as-waiting-for-dns-01-challenge-propagation-while-its-self-check-runs

- A. Order
- B. Challenge
- C. CertificateRequest
- D. ClusterIssuer

**Answer:** Challenge

**Explanation:** Each ACME Order creates one Challenge per domain, and the Challenge runs the self-check before asking the ACME server to validate. kubectl get challenges shows the state and reason for each. A self-check that keeps failing is retried every 10 seconds until someone fixes the cause.

### Which Let's Encrypt server URL should a cert-manager test issuer use to avoid production rate limits?

cert-manager, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/which-lets-encrypt-server-url-should-a-cert-manager-test-issuer-use-to-avoid-production-rate-limits

- A. https://acme-staging-v02.api.letsencrypt.org/directory
- B. https://acme-v02.api.letsencrypt.org/directory
- C. https://acme-test-v02.api.letsencrypt.org/directory
- D. https://staging.api.letsencrypt.org/acme/directory

**Answer:** https://acme-staging-v02.api.letsencrypt.org/directory

**Explanation:** The staging directory issues certificates from an untrusted test CA, but you can retry as often as you need while you debug an issuer. acme-v02.api.letsencrypt.org is the production server, where repeated failures can hit rate limits. Switch spec.acme.server to production once issuance works.

### Which root certificate did cert-manager v1.21.3 remove from its container images after the eMudhra CA compromise?

cert-manager, Easy (Beginner), Security. https://k8wiz.com/uquiz/which-root-certificate-did-cert-manager-v1213-remove-from-its-container-images-after-the-emudhra-ca-compromise

- A. eMudhra Root CA - G2
- B. emSign ECC Root CA - G3
- C. emSign Root CA - C1
- D. eMudhra ECC Root CA - G1

**Answer:** emSign ECC Root CA - G3

**Explanation:** The v1.21.3 release notes say the updated distroless base images no longer include the "emSign ECC Root CA - G3" root certificate. The release also moves to Go 1.26.10, whose crypto/x509 package rejects chains that pass through the compromised intermediates.

### Which status field on a trust-manager Bundle shows the version of the default CA package it was built from?

cert-manager, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-status-field-on-a-trust-manager-bundle-shows-the-version-of-the-default-ca-package-it-was-built-from

- A. status.caPackageVersion
- B. status.defaultPackageImage
- C. status.trustPackageTag
- D. status.defaultCAVersion

**Answer:** status.defaultCAVersion

**Explanation:** trust-manager writes the version of the default CA package to status.defaultCAVersion on every Bundle that has a source with useDefaultCAs: true. Checking it is a quick way to confirm a cluster no longer uses a package that trusts the compromised eMudhra roots. defaultPackageImage is a Helm value, not a status field.

### Which trust-manager Helm value pins the tag of the default CA package image?

cert-manager, Easy (Beginner), Security. https://k8wiz.com/uquiz/which-trust-manager-helm-value-pins-the-tag-of-the-default-ca-package-image

- A. defaultPackageImage.tag
- B. defaultCAPackage.version
- C. image.defaultCAs.tag
- D. bundle.defaultCATag

**Answer:** defaultPackageImage.tag

**Explanation:** The default CA package is set with defaultPackageImage.repository and defaultPackageImage.tag. If you can't upgrade to trust-manager v0.26.0, the docs say to set defaultPackageImage.tag to a fixed tag such as 20250419-deb13u1.0 or newer, quoted so it stays a string.

### Which cert-manager issuer type do you use to create the root certificate when bootstrapping a CA issuer inside the cluster?

cert-manager, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/which-cert-manager-issuer-type-do-you-use-to-create-the-root-certificate-when-bootstrapping-a-ca-issuer-inside-the-cluster

- A. ACME
- B. SelfSigned
- C. Vault
- D. Venafi

**Answer:** SelfSigned

**Explanation:** A SelfSigned issuer signs a certificate with that certificate's own private key, which is what a root CA is. The cert-manager docs show a SelfSigned ClusterIssuer issuing a Certificate with isCA: true, whose Secret then backs a CA issuer. ACME issuers only talk to an external ACME server and can't create a root.

### Which usage does cert-manager add on its own to a Certificate that sets isCA: true?

cert-manager, Easy (Beginner), Security. https://k8wiz.com/uquiz/which-usage-does-cert-manager-add-on-its-own-to-a-certificate-that-sets-isca-true

- A. server auth
- B. client auth
- C. cert sign
- D. code signing

**Answer:** cert sign

**Explanation:** The Certificate API says that isCA: true automatically adds the cert sign usage to the requested usages, so the certificate can sign other certificates. Without isCA, a Certificate defaults to the digital signature and key encipherment usages.

### Which trust-manager custom resource lists CA sources and writes the combined bundle to ConfigMaps in matching namespaces?

cert-manager, Easy (Beginner), Integration. https://k8wiz.com/uquiz/which-trust-manager-custom-resource-lists-ca-sources-and-writes-the-combined-bundle-to-configmaps-in-matching-namespaces

- A. Bundle
- B. TrustStore
- C. CABundle
- D. TrustPolicy

**Answer:** Bundle

**Explanation:** Bundle (trust.cert-manager.io/v1alpha1) is the cluster-scoped resource that the trust-manager chart installs. Its spec.sources can be ConfigMaps, Secrets, inline PEM or the default CA package, and spec.target writes the result to a ConfigMap (or Secret) named after the Bundle, filtered by an optional namespaceSelector.

## Advanced (Medium): 31 questions

Interactive quiz: https://k8wiz.com/cert-manager/quiz/medium

### What is the difference between an Issuer and a ClusterIssuer in cert-manager?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-difference-between-an-issuer-and-a-clusterissuer-in-cert-manager

- A. Issuers are for development, ClusterIssuers are for production
- B. Issuers are namespaced, ClusterIssuers are cluster-wide
- C. Issuers support ACME, ClusterIssuers support self-signed certificates
- D. Issuers are deprecated, ClusterIssuers are the recommended approach

**Answer:** Issuers are namespaced, ClusterIssuers are cluster-wide

**Explanation:** The main difference between Issuers and ClusterIssuers is their scope. Issuers are namespaced resources, meaning they can only issue certificates within their own namespace. ClusterIssuers are cluster-wide resources, meaning they can issue certificates in any namespace.

### Which of the following is NOT a valid cert-manager issuer type?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-valid-cert-manager-issuer-type

- A. ACME
- B. SelfSigned
- C. CA
- D. OpenSSL

**Answer:** OpenSSL

**Explanation:** OpenSSL is not a valid cert-manager issuer type. The valid issuer types include ACME (for Let's Encrypt), SelfSigned, CA (for using your own Certificate Authority), Vault (for HashiCorp Vault), and Venafi.

### What is the purpose of a CertificateRequest in cert-manager?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-a-certificaterequest-in-cert-manager

- A. To request a certificate from an external CA
- B. To define the desired certificate configuration
- C. To represent a single request for a certificate from an issuer
- D. To automatically renew certificates

**Answer:** To represent a single request for a certificate from an issuer

**Explanation:** A CertificateRequest is a resource in cert-manager that represents a single request for a certificate from an issuer. It contains a base64 encoded Certificate Signing Request (CSR) which is sent to the referenced issuer. The issuer will then process the request and return a signed certificate if successful.

### Which challenge type is NOT supported by the ACME issuer in cert-manager?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/which-challenge-type-is-not-supported-by-the-acme-issuer-in-cert-manager

- A. HTTP-01
- B. DNS-01
- C. TLS-SNI-01
- D. TLS-ALPN-01

**Answer:** TLS-SNI-01

**Explanation:** TLS-SNI-01 is not supported by the ACME issuer in cert-manager as it has been deprecated by Let's Encrypt due to security concerns. The supported challenge types are HTTP-01, DNS-01, and TLS-ALPN-01.

### How does cert-manager handle certificate renewal?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/how-does-cert-manager-handle-certificate-renewal

- A. It doesn't handle renewal; certificates must be manually renewed
- B. It renews certificates after they expire
- C. It renews certificates at a configured time before expiry
- D. It renews certificates only when explicitly triggered

**Answer:** It renews certificates at a configured time before expiry

**Explanation:** cert-manager automatically renews certificates at a configured time before they expire. By default, it will attempt to renew certificates when they are two-thirds of the way through their total lifetime.

### Which of the following is a valid way to configure a DNS-01 challenge solver for the ACME issuer?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/which-of-the-following-is-a-valid-way-to-configure-a-dns-01-challenge-solver-for-the-acme-issuer

- A. Using a webhook provider
- B. Using an ingress controller
- C. Using a service mesh
- D. Using a load balancer

**Answer:** Using a webhook provider

**Explanation:** A valid way to configure a DNS-01 challenge solver for the ACME issuer is using a webhook provider. cert-manager supports various DNS providers through webhook plugins, which allow it to create the necessary DNS records for validation.

### What is the purpose of the 'renewBefore' field in a Certificate resource?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-renewbefore-field-in-a-certificate-resource

- A. To specify how long before expiry cert-manager should attempt to renew the certificate
- B. To specify how many times a certificate can be renewed
- C. To specify the minimum time between renewal attempts
- D. To specify when the certificate should be first issued

**Answer:** To specify how long before expiry cert-manager should attempt to renew the certificate

**Explanation:** The 'renewBefore' field in a Certificate resource specifies how long before the certificate's expiry date cert-manager should attempt to renew it. This allows for a buffer period to ensure the certificate is renewed before it expires.

### What happens when a Certificate resource is deleted in cert-manager?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-happens-when-a-certificate-resource-is-deleted-in-cert-manager

- A. The certificate is immediately revoked
- B. The certificate is marked as invalid but not deleted
- C. The Secret containing the certificate is deleted
- D. Nothing happens to the issued certificate

**Answer:** The Secret containing the certificate is deleted

**Explanation:** When a Certificate resource is deleted in cert-manager, the Secret containing the certificate is also deleted. This is because the Secret is owned by the Certificate resource and is garbage collected when the Certificate is deleted.

### Which of the following is NOT a valid field in a Certificate resource?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-valid-field-in-a-certificate-resource

- A. secretName
- B. issuerRef
- C. dnsNames
- D. validationMethod

**Answer:** validationMethod

**Explanation:** validationMethod is not a valid field in a Certificate resource. The validation method is specified in the Issuer or ClusterIssuer configuration, not in the Certificate resource. Valid fields include secretName, issuerRef, dnsNames, commonName, duration, and renewBefore.

### Which component of cert-manager is responsible for processing Certificate resources?

cert-manager, Medium (Advanced), Architecture. https://k8wiz.com/uquiz/which-component-of-cert-manager-is-responsible-for-processing-certificate-resources

- A. cert-controller
- B. cert-manager-controller
- C. certificate-controller
- D. cert-manager-webhook

**Answer:** cert-manager-controller

**Explanation:** The cert-manager-controller component is responsible for processing Certificate resources. It watches for Certificate resources and creates CertificateRequest resources as needed to ensure the certificates are issued and kept up to date.

### What is the purpose of the cert-manager-webhook component?

cert-manager, Medium (Advanced), Architecture. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-cert-manager-webhook-component

- A. To validate and mutate cert-manager resources
- B. To handle webhook callbacks from external CAs
- C. To provide a web interface for managing certificates
- D. To issue certificates directly

**Answer:** To validate and mutate cert-manager resources

**Explanation:** The cert-manager-webhook component provides admission webhook endpoints for validating and mutating cert-manager resources. It ensures that resources are correctly formatted before they are stored in the Kubernetes API server.

### Which of the following is a valid way to debug cert-manager issues?

cert-manager, Medium (Advanced), Troubleshooting. https://k8wiz.com/uquiz/which-of-the-following-is-a-valid-way-to-debug-cert-manager-issues

- A. Using the cert-manager debug tool
- B. Checking the cert-manager controller logs
- C. Running cert-manager in debug mode
- D. Using the cert-manager diagnostic utility

**Answer:** Checking the cert-manager controller logs

**Explanation:** Checking the cert-manager controller logs is a valid way to debug cert-manager issues. You can view these logs using 'kubectl logs -n cert-manager -l app=cert-manager' to see what's happening with certificate issuance and any errors that might be occurring.

### Which of the following is NOT a component of the cert-manager architecture?

cert-manager, Medium (Advanced), Architecture. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-component-of-the-cert-manager-architecture

- A. Controller
- B. Webhook
- C. CA Server
- D. Scheduler

**Answer:** Scheduler

**Explanation:** Scheduler is not a component of the cert-manager architecture. The main components are the Controller (cert-manager-controller), which processes Certificate resources, and the Webhook (cert-manager-webhook), which validates and mutates cert-manager resources. cert-manager does not include a CA Server or Scheduler component.

### What is the purpose of the 'keyAlgorithm' field in a Certificate resource?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-keyalgorithm-field-in-a-certificate-resource

- A. To specify the algorithm to use for generating the private key
- B. To specify the algorithm for encrypting the certificate
- C. To specify the key derivation algorithm
- D. To specify the algorithm for signing the certificate

**Answer:** To specify the algorithm to use for generating the private key

**Explanation:** The 'keyAlgorithm' field in a Certificate resource specifies the algorithm to use for generating the private key associated with the certificate. Common values include 'RSA' and 'ECDSA'.

### What is the purpose of the 'keySize' field in a Certificate resource?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-keysize-field-in-a-certificate-resource

- A. To specify the size of the private key in bits
- B. To specify the maximum size of the certificate in bytes
- C. To specify the number of keys to generate
- D. To specify the key identifier size

**Answer:** To specify the size of the private key in bits

**Explanation:** The 'keySize' field in a Certificate resource specifies the size of the private key in bits. This is only applicable when using the RSA key algorithm. Common values include 2048 and 4096 bits.

### Which of the following is NOT a valid status condition for a Certificate resource?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-valid-status-condition-for-a-certificate-resource

- A. Ready
- B. Issuing
- C. Failed
- D. Expired

**Answer:** Failed

**Explanation:** Failed is not a valid status condition for a Certificate resource. The valid status conditions include Ready (certificate is ready for use), Issuing (certificate is being issued), and NotReady (certificate is not ready for use). Expired is not a standard condition but can be inferred from other status information.

### What is the purpose of the 'isCA' field in a Certificate resource?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-isca-field-in-a-certificate-resource

- A. To specify whether the certificate should be a CA certificate
- B. To specify whether the issuer is a CA
- C. To check if the certificate is issued by a CA
- D. To validate the CA chain

**Answer:** To specify whether the certificate should be a CA certificate

**Explanation:** The 'isCA' field in a Certificate resource specifies whether the certificate should be a CA certificate, meaning it can be used to sign other certificates. When set to true, the certificate will have the CA bit set in the basic constraints extension.

### What is the purpose of the 'usages' field in a Certificate resource?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-usages-field-in-a-certificate-resource

- A. To specify the purposes for which the certificate can be used
- B. To track how many times the certificate has been used
- C. To limit the number of times the certificate can be used
- D. To specify which applications can use the certificate

**Answer:** To specify the purposes for which the certificate can be used

**Explanation:** The 'usages' field in a Certificate resource specifies the purposes for which the certificate can be used, such as 'digital signature', 'key encipherment', or 'server auth'. These are encoded in the certificate's key usage and extended key usage extensions.

### Which of the following is a valid way to configure a CA issuer?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/which-of-the-following-is-a-valid-way-to-configure-a-ca-issuer

- A. By specifying a CA certificate and key
- B. By specifying an ACME server URL
- C. By not specifying any configuration
- D. By specifying a Vault server URL

**Answer:** By specifying a CA certificate and key

**Explanation:** A valid way to configure a CA issuer is by specifying a CA certificate and key. These are typically stored in a Secret and referenced in the issuer configuration. The CA issuer uses this certificate and key to sign certificate requests.

### What happens if a certificate cannot be issued due to an error with the issuer?

cert-manager, Medium (Advanced), Troubleshooting. https://k8wiz.com/uquiz/what-happens-if-a-certificate-cannot-be-issued-due-to-an-error-with-the-issuer

- A. cert-manager will keep retrying indefinitely
- B. cert-manager will retry with exponential backoff
- C. cert-manager will try a different issuer
- D. cert-manager will generate a self-signed certificate instead

**Answer:** cert-manager will retry with exponential backoff

**Explanation:** If a certificate cannot be issued due to an error with the issuer, cert-manager will retry with exponential backoff. This means it will wait increasingly longer periods between retry attempts to avoid overwhelming the issuer or the Kubernetes API server.

### What is the purpose of the 'privateKey' field in a Certificate resource?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-privatekey-field-in-a-certificate-resource

- A. To specify options for the generated private key
- B. To provide an existing private key
- C. To specify where to store the private key
- D. To encrypt the private key

**Answer:** To specify options for the generated private key

**Explanation:** The 'privateKey' field in a Certificate resource is used to specify options for the generated private key, such as the algorithm (RSA, ECDSA) and key size. cert-manager will generate a new private key for each certificate based on these specifications.

### Which of the following is NOT a valid ACME challenge type?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-valid-acme-challenge-type

- A. HTTP-01
- B. DNS-01
- C. TLS-ALPN-01
- D. EMAIL-01

**Answer:** EMAIL-01

**Explanation:** EMAIL-01 is not a valid ACME challenge type. The valid ACME challenge types supported by cert-manager are HTTP-01 (which uses HTTP endpoints), DNS-01 (which uses DNS records), and TLS-ALPN-01 (which uses TLS Application-Layer Protocol Negotiation).

### Which component is responsible for solving ACME challenges in cert-manager?

cert-manager, Medium (Advanced), Architecture. https://k8wiz.com/uquiz/which-component-is-responsible-for-solving-acme-challenges-in-cert-manager

- A. cert-manager-controller
- B. cert-manager-webhook
- C. cert-manager-solver
- D. cert-manager-acme

**Answer:** cert-manager-controller

**Explanation:** The cert-manager-controller component is responsible for solving ACME challenges in cert-manager. It creates the necessary resources (like Ingress resources for HTTP-01 challenges or interacts with DNS providers for DNS-01 challenges) to solve the challenges and prove domain ownership.

### What is the purpose of the 'ipAddresses' field in a Certificate resource?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-ipaddresses-field-in-a-certificate-resource

- A. To specify IP addresses that the certificate should be valid for
- B. To specify IP addresses for validation
- C. To specify IP addresses of the certificate servers
- D. To specify IP addresses for DNS resolution

**Answer:** To specify IP addresses that the certificate should be valid for

**Explanation:** The 'ipAddresses' field in a Certificate resource specifies the IP addresses (Subject Alternative Names) that the certificate should be valid for. This is useful when you need a certificate for an IP address rather than a domain name.

### Which of the following is NOT a valid field in an ACME issuer configuration?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-valid-field-in-an-acme-issuer-configuration

- A. server
- B. email
- C. privateKeySecretRef
- D. certificateAuthority

**Answer:** certificateAuthority

**Explanation:** certificateAuthority is not a valid field in an ACME issuer configuration. The valid fields include server (the URL of the ACME server), email (the email address to register with the ACME server), privateKeySecretRef (reference to a secret containing the ACME account private key), and solvers (configuration for solving ACME challenges).

### Which of the following is NOT a component installed by default with cert-manager?

cert-manager, Medium (Advanced), Architecture. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-component-installed-by-default-with-cert-manager

- A. cert-manager-controller
- B. cert-manager-webhook
- C. cert-manager-cainjector
- D. cert-manager-acmesolver

**Answer:** cert-manager-acmesolver

**Explanation:** cert-manager-acmesolver is not a component installed by default with cert-manager. The default components are cert-manager-controller (the main controller), cert-manager-webhook (for validating and mutating resources), and cert-manager-cainjector (for injecting CA data into webhook configurations). There is no separate acmesolver component as this functionality is built into the controller.

### What is the purpose of the cert-manager-cainjector component?

cert-manager, Medium (Advanced), Architecture. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-cert-manager-cainjector-component

- A. To inject CA certificates into webhook configurations
- B. To inject certificates into pods
- C. To act as a certificate authority
- D. To inject CRDs into the Kubernetes API

**Answer:** To inject CA certificates into webhook configurations

**Explanation:** The cert-manager-cainjector component is responsible for injecting CA certificates into webhook configurations. This ensures that the Kubernetes API server can establish trust with admission webhook servers by injecting the CA bundle into the webhook configurations.

### What is the purpose of the 'secretTemplate' field in a Certificate resource?

cert-manager, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-secrettemplate-field-in-a-certificate-resource

- A. To customize the labels and annotations on the Secret containing the certificate
- B. To specify a template for generating the certificate
- C. To define a template for the certificate's subject
- D. To create a template for multiple certificates

**Answer:** To customize the labels and annotations on the Secret containing the certificate

**Explanation:** The 'secretTemplate' field in a Certificate resource allows you to customize the labels and annotations that will be applied to the Secret containing the certificate. This is useful for adding metadata to the Secret for organizational purposes or for integration with other systems.

### A cert-manager HTTP-01 self-check fails with "remote error: tls: handshake failure". Which annotation does the troubleshooting guide suggest?

cert-manager, Medium (Advanced), Troubleshooting. https://k8wiz.com/uquiz/a-cert-manager-http-01-self-check-fails-with-remote-error-tls-handshake-failure-which-annotation-does-the-troubleshooting-guide

- A. cert-manager.io/disable-self-check: "true"
- B. acme.cert-manager.io/http01-insecure: "true"
- C. cert-manager.io/allow-plain-http: "true"
- D. cert-manager.io/issue-temporary-certificate: "true"

**Answer:** cert-manager.io/issue-temporary-certificate: "true"

**Explanation:** The handshake error usually means the ingress controller redirects or serves HTTPS for a host that has no certificate yet. With issue-temporary-certificate, cert-manager first puts a temporary self-signed certificate in the Secret so the ingress controller can serve TLS while the real one is issued. Set it on the Ingress or the Certificate.

### What problem does the status.acme.ari.certID field added in cert-manager v1.21.3 fix?

cert-manager, Medium (Advanced), Troubleshooting. https://k8wiz.com/uquiz/what-problem-does-the-statusacmearicertid-field-added-in-cert-manager-v1213-fix

- A. ARI requests failing when the CA returns no renewal information
- B. Duplicate ACME orders created for one CertificateRequest
- C. A renewal loop caused by an ARI window from the previous certificate
- D. Expired ACME account keys blocking the renewal of a Certificate

**Answer:** A renewal loop caused by an ARI window from the previous certificate

**Explanation:** With the alpha ACMEUseARI feature gate on, cert-manager stores the CA's suggested renewal window in status.acme.ari. The window wasn't tied to a certificate, so after a reissue a stale window could trigger repeated re-issuance until the CA rate limit was hit. certID records which certificate the window belongs to, and the field is new in the v1.21.3 CRDs, so upgrade them too.

### You replace the CA certificate and key in the Secret behind a cert-manager CA issuer. What happens to the leaf certificates it already issued?

cert-manager, Medium (Advanced), Troubleshooting. https://k8wiz.com/uquiz/you-replace-the-ca-certificate-and-key-in-the-secret-behind-a-cert-manager-ca-issuer-what-happens-to-the-leaf-certificates-it-al

- A. They are reissued right away by the new CA
- B. They are revoked and their Secrets are emptied at once
- C. They become invalid until each pod restarts
- D. Nothing until renewal, unless you run cmctl renew

**Answer:** Nothing until renewal, unless you run cmctl renew

**Explanation:** The CA issuer docs state that updating the CA Secret doesn't trigger reissuance of leaf certificates. Existing leaves keep their old signature until their normal renewal, so you reissue them yourself, for example with cmctl renew. cert-manager has no revocation support, so revocation is not what happens.

## Expert (Hard): 23 questions

Interactive quiz: https://k8wiz.com/cert-manager/quiz/hard

### Which of the following is a valid way to revoke a certificate in cert-manager?

cert-manager, Hard (Expert), Concepts. https://k8wiz.com/uquiz/which-of-the-following-is-a-valid-way-to-revoke-a-certificate-in-cert-manager

- A. Using the 'kubectl revoke certificate' command
- B. Deleting the Certificate resource
- C. Using the cert-manager revocation API
- D. cert-manager does not support certificate revocation

**Answer:** cert-manager does not support certificate revocation

**Explanation:** cert-manager does not natively support certificate revocation. While you can delete a Certificate resource to remove it from use, this doesn't revoke the certificate with the issuing CA. Some CAs like Let's Encrypt don't support revocation through the ACME protocol used by cert-manager.

### Which of the following is a valid way to configure a Vault issuer?

cert-manager, Hard (Expert), Concepts. https://k8wiz.com/uquiz/which-of-the-following-is-a-valid-way-to-configure-a-vault-issuer

- A. By specifying a Vault server URL and authentication method
- B. By specifying a Vault certificate and key
- C. By specifying a Vault token only
- D. By specifying a Vault plugin

**Answer:** By specifying a Vault server URL and authentication method

**Explanation:** A valid way to configure a Vault issuer is by specifying a Vault server URL and authentication method. cert-manager supports various authentication methods for Vault, including token, AppRole, and Kubernetes authentication.

### What is the purpose of the 'keystores' field in a Certificate resource?

cert-manager, Hard (Expert), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-keystores-field-in-a-certificate-resource

- A. To specify additional formats for storing the certificate and private key
- B. To specify key-value stores for certificate metadata
- C. To specify encryption options for the private key
- D. To specify key rotation policies

**Answer:** To specify additional formats for storing the certificate and private key

**Explanation:** The 'keystores' field in a Certificate resource is used to specify additional formats for storing the certificate and private key, such as JKS (Java KeyStore) or PKCS#12. This is useful when the certificate needs to be used with applications that require these specific formats.

### What is the purpose of the 'encodeUsagesInRequest' field in a Certificate resource?

cert-manager, Hard (Expert), Concepts. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-encodeusagesinrequest-field-in-a-certificate-resource

- A. To specify whether key usages should be encoded in the certificate request
- B. To encode the certificate usage statistics
- C. To track how the certificate is being used
- D. To encrypt usage data in the request

**Answer:** To specify whether key usages should be encoded in the certificate request

**Explanation:** The 'encodeUsagesInRequest' field in a Certificate resource specifies whether key usages should be encoded in the certificate signing request (CSR). Some CAs ignore the key usages in the CSR and set their own, so this option allows you to control whether cert-manager includes them in the request.

### Which of the following is a valid way to debug a failing HTTP-01 challenge?

cert-manager, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/which-of-the-following-is-a-valid-way-to-debug-a-failing-http-01-challenge

- A. Checking if the created ingress resources are correctly routing to the cert-manager challenge solver
- B. Verifying DNS propagation
- C. Checking if the certificate is in the browser's trust store
- D. Validating the certificate chain

**Answer:** Checking if the created ingress resources are correctly routing to the cert-manager challenge solver

**Explanation:** A valid way to debug a failing HTTP-01 challenge is to check if the created ingress resources are correctly routing to the cert-manager challenge solver. HTTP-01 challenges work by creating temporary ingress resources that route specific paths to a cert-manager pod that responds with the challenge token.

### Which of the following is a valid way to configure a DNS-01 challenge for a Route53 provider?

cert-manager, Hard (Expert), Concepts. https://k8wiz.com/uquiz/which-of-the-following-is-a-valid-way-to-configure-a-dns-01-challenge-for-a-route53-provider

- A. By specifying AWS credentials and region
- B. By specifying a Route53 API token
- C. By specifying a Route53 webhook
- D. By specifying a Route53 plugin

**Answer:** By specifying AWS credentials and region

**Explanation:** A valid way to configure a DNS-01 challenge for a Route53 provider is by specifying AWS credentials and region. cert-manager can use these credentials to create the necessary DNS records in Route53 for solving the DNS-01 challenge.

### Which of the following is NOT a valid way to secure cert-manager's webhook?

cert-manager, Hard (Expert), Security. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-valid-way-to-secure-cert-managers-webhook

- A. Using network policies
- B. Using RBAC
- C. Using a service mesh
- D. Using a password

**Answer:** Using a password

**Explanation:** Using a password is not a valid way to secure cert-manager's webhook. The webhook is secured using TLS certificates for authentication and RBAC for authorization. Network policies and service meshes can also be used to control traffic to the webhook, but password authentication is not supported.

### When you create a Certificate that uses an ACME issuer, which chain of resources does cert-manager create?

cert-manager, Hard (Expert), Architecture. https://k8wiz.com/uquiz/when-you-create-a-certificate-that-uses-an-acme-issuer-which-chain-of-resources-does-cert-manager-create

- A. Certificate → CertificateRequest → Order → Challenge
- B. Certificate → Order → Secret → Challenge
- C. Certificate → Challenge → CertificateRequest → Order
- D. Certificate → Issuer → Order → Secret

**Answer:** Certificate → CertificateRequest → Order → Challenge

**Explanation:** The Certificate controller creates a CertificateRequest that holds the CSR. For ACME issuers, that request creates an Order with the ACME server, and the Order creates one Challenge per domain to prove. Running 'kubectl describe' on each step, or 'cmctl status certificate', shows where issuance is stuck.

### A ClusterIssuer for DNS-01 references a Secret holding DNS provider credentials. In which namespace does cert-manager look for that Secret?

cert-manager, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/a-clusterissuer-for-dns-01-references-a-secret-holding-dns-provider-credentials-in-which-namespace-does-cert-manager-look-for-th

- A. The namespace of the Certificate that is being issued
- B. The cluster resource namespace, cert-manager's own by default
- C. kube-system, where cluster-scoped Secrets are kept
- D. Any namespace, since ClusterIssuers search all of them

**Answer:** The cluster resource namespace, cert-manager's own by default

**Explanation:** ClusterIssuers are cluster-scoped but Secrets aren't, so cert-manager reads ClusterIssuer Secrets from the namespace set by its --cluster-resource-namespace flag. That defaults to cert-manager's own namespace. Putting the Secret next to the Certificate is a common mistake, and the issuer then reports that it can't find the Secret.

### How do you get cert-manager to create and manage a Certificate for an Ingress automatically?

cert-manager, Hard (Expert), Integration. https://k8wiz.com/uquiz/how-do-you-get-cert-manager-to-create-and-manage-a-certificate-for-an-ingress-automatically

- A. Add a cert-manager.io/enabled: "true" label to the Ingress
- B. Create a ClusterIssuer with the same name as the Ingress class
- C. Add a cert-manager.io/cluster-issuer annotation and a tls section
- D. Set spec.ingressClassName to cert-manager on the Ingress

**Answer:** Add a cert-manager.io/cluster-issuer annotation and a tls section

**Explanation:** cert-manager's ingress-shim watches Ingresses with those annotations. For each tls entry it creates a Certificate for the listed hosts, stored in the secretName that the Ingress controller already reads, and it keeps the Certificate in sync when you edit the Ingress. Gateway API Gateways work the same way when that support is enabled.

### What does privateKey.rotationPolicy: Always do on a Certificate?

cert-manager, Hard (Expert), Security. https://k8wiz.com/uquiz/what-does-privatekeyrotationpolicy-always-do-on-a-certificate

- A. The private key is rotated every 24 hours, even between renewals
- B. The key is only replaced when someone deletes the Secret
- C. A new private key is generated on every issuance and renewal
- D. The issuer rotates its own CA signing key on each renewal

**Answer:** A new private key is generated on every issuance and renewal

**Explanation:** With Always, each issuance creates a fresh key, so a leaked key stops being useful after the next renewal. With Never, cert-manager reuses the key already stored in the Secret. Always has been the default since cert-manager v1.18. Before that the default was Never.

### How do you make cert-manager reissue a certificate right away, before it is due for renewal?

cert-manager, Hard (Expert), Commands. https://k8wiz.com/uquiz/how-do-you-make-cert-manager-reissue-a-certificate-right-away-before-it-is-due-for-renewal

- A. kubectl delete certificaterequest --all
- B. cmctl renew <certificate-name>
- C. kubectl annotate certificate <name> cert-manager.io/renew=now
- D. Restart the cert-manager pods

**Answer:** cmctl renew <certificate-name>

**Explanation:** 'cmctl renew' sets the Certificate's Issuing condition, which starts a new issuance the same way a scheduled renewal does, and '--all' renews every Certificate in a namespace. Deleting the Secret also triggers reissuance, but the app has no certificate until the new one arrives.

### What does the Secret named in an ACME issuer's privateKeySecretRef contain?

cert-manager, Hard (Expert), Concepts. https://k8wiz.com/uquiz/what-does-the-secret-named-in-an-acme-issuers-privatekeysecretref-contain

- A. The private keys of all certificates the issuer has issued
- B. The ACME server's root CA certificate
- C. Credentials for the DNS provider used by DNS-01
- D. The private key of cert-manager's ACME account

**Answer:** The private key of cert-manager's ACME account

**Explanation:** cert-manager creates this key when the issuer is first set up and uses it to sign every request it sends to the ACME server, such as Let's Encrypt. If you delete it, cert-manager registers a new account. The private key for each certificate lives in that Certificate's own Secret.

### Let's Encrypt fails HTTP-01 validation for app.example.com. Which URL must be reachable from the internet?

cert-manager, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/lets-encrypt-fails-http-01-validation-for-appexamplecom-which-url-must-be-reachable-from-the-internet

- A. http://app.example.com/.well-known/acme-challenge/<token> on port 80
- B. https://app.example.com/.well-known/acme-challenge/<token> on port 443
- C. http://app.example.com:8089/acme/<token>
- D. https://acme.cert-manager.io/app.example.com/<token>

**Answer:** http://app.example.com/.well-known/acme-challenge/<token> on port 80

**Explanation:** The ACME server fetches the token over plain HTTP on port 80. It follows redirects, but the first request must reach port 80. cert-manager runs a solver pod, which listens on 8089 inside the cluster, and routes that path to it through a temporary Ingress or HTTPRoute. If a firewall blocks port 80, or the Ingress controller sends that path somewhere else, validation fails. DNS-01 avoids this.

### A Certificate fails to issue several times in a row, for example because the issuer is misconfigured. How does cert-manager retry?

cert-manager, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/a-certificate-fails-to-issue-several-times-in-a-row-for-example-because-the-issuer-is-misconfigured-how-does-cert-manager-retry

- A. Every 5 minutes until it succeeds
- B. With an exponentially increasing delay, from 1 hour up to 32 hours by default
- C. It stops after three failures until you recreate the Certificate
- D. Only when the cert-manager pods restart

**Answer:** With an exponentially increasing delay, from 1 hour up to 32 hours by default

**Explanation:** After a failed issuance, cert-manager waits longer before each new attempt, starting at 1 hour and capped at 32 hours. Both limits can be changed with controller flags. This keeps a broken setup from hammering the ACME server. Once you fix the cause, 'cmctl renew' retries straight away.

### Which cert-manager sub-project copies CA bundles into namespaces as ConfigMaps or Secrets, so applications can trust a private CA?

cert-manager, Hard (Expert), Integration. https://k8wiz.com/uquiz/which-cert-manager-sub-project-copies-ca-bundles-into-namespaces-as-configmaps-or-secrets-so-applications-can-trust-a-private-ca

- A. cainjector
- B. trust-manager
- C. csi-driver
- D. approver-policy

**Answer:** trust-manager

**Explanation:** trust-manager reads CA certificates from the sources listed in a Bundle resource, such as Secrets, ConfigMaps or the default public CA set, and writes the combined bundle to a ConfigMap or Secret in each selected namespace. Pods mount it to trust certificates from your private issuer. cainjector does a related job for webhook and APIService configurations, not for workloads.

### Which cert-manager component issues a certificate straight into a pod's volume without creating a Secret?

cert-manager, Hard (Expert), Security. https://k8wiz.com/uquiz/which-cert-manager-component-issues-a-certificate-straight-into-a-pods-volume-without-creating-a-secret

- A. trust-manager
- B. csi-driver
- C. cainjector
- D. ingress-shim

**Answer:** csi-driver

**Explanation:** The cert-manager csi-driver creates a CertificateRequest when the pod starts and mounts the key and certificate through an ephemeral CSI volume. The private key is generated on the node and is never stored in the API server. Each pod gets its own certificate, which suits mTLS between workloads.

### What has to happen to a CertificateRequest before an issuer will sign it?

cert-manager, Hard (Expert), Security. https://k8wiz.com/uquiz/what-has-to-happen-to-a-certificaterequest-before-an-issuer-will-sign-it

- A. An administrator must approve every request with cmctl approve
- B. The requester's namespace must match the issuer's namespace
- C. Nothing, because issuers sign every request as soon as it exists
- D. It must get an Approved condition, which the built-in approver adds by default

**Answer:** It must get an Approved condition, which the built-in approver adds by default

**Explanation:** Issuers only sign CertificateRequests that carry an Approved condition and no Denied condition. By default the cert-manager controller approves every request for its built-in issuers. To control what can be requested, you turn off the built-in approver and run approver-policy, which approves or denies requests against CertificateRequestPolicy resources.

### Which annotation tells cainjector to fill a webhook configuration's caBundle from a cert-manager Certificate?

cert-manager, Hard (Expert), Integration. https://k8wiz.com/uquiz/which-annotation-tells-cainjector-to-fill-a-webhook-configurations-cabundle-from-a-cert-manager-certificate

- A. cert-manager.io/ca-bundle: <secret-name>
- B. cainjector.io/source: <issuer-name>
- C. cert-manager.io/inject-ca-from: <namespace>/<certificate-name>
- D. cert-manager.io/issuer: <namespace>/<certificate-name>

**Answer:** cert-manager.io/inject-ca-from: <namespace>/<certificate-name>

**Explanation:** cainjector watches ValidatingWebhookConfiguration, MutatingWebhookConfiguration, CustomResourceDefinition and APIService objects with this annotation. It copies the CA from the named Certificate's Secret into their caBundle fields and updates it when the certificate is renewed. cert-manager.io/inject-ca-from-secret does the same directly from a Secret.

### cert-manager can't be given API access to the DNS zone for example.com. How can you still use DNS-01 for it?

cert-manager, Hard (Expert), Concepts. https://k8wiz.com/uquiz/cert-manager-cant-be-given-api-access-to-the-dns-zone-for-examplecom-how-can-you-still-use-dns-01-for-it

- A. Use the HTTP-01 solver together with a DNS provider plugin
- B. Set the solver's zone to example.com and leave credentials empty
- C. CNAME _acme-challenge to a zone it can edit and set cnameStrategy: Follow
- D. It can't be done, because DNS-01 needs write access to that exact zone

**Answer:** CNAME _acme-challenge to a zone it can edit and set cnameStrategy: Follow

**Explanation:** The ACME server follows CNAMEs when it looks up the TXT record. With cnameStrategy: Follow, cert-manager resolves the CNAME and writes the TXT record at its target, in a zone where it has credentials. The credentials for the main zone never enter the cluster.

### Let's Encrypt can reach an HTTP-01 challenge URL, but cert-manager's self-check can't because the network has no NAT loopback. Which cert-manager 1.21 solver option handles this?

cert-manager, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/lets-encrypt-can-reach-an-http-01-challenge-url-but-cert-managers-self-check-cant-because-the-network-has-no-nat-loopback-which

- A. waitInsteadOfSelfCheck
- B. skipSelfCheck
- C. selfCheckTimeout
- D. disablePropagationCheck

**Answer:** waitInsteadOfSelfCheck

**Explanation:** Added in cert-manager 1.21, waitInsteadOfSelfCheck on an http01 or dns01 solver skips the self-check and waits the given duration after presenting the challenge before asking the ACME server to validate. It is meant for NAT loopback limits, split-horizon DNS and similar setups. A delay that is too short lets validation start before the solver is reachable.

### Since cert-manager v1.21.3, when will the issuing controller use the Secret named in a Certificate's status.nextPrivateKeySecretName?

cert-manager, Hard (Expert), Security. https://k8wiz.com/uquiz/since-cert-manager-v1213-when-will-the-issuing-controller-use-the-secret-named-in-a-certificates-statusnextprivatekeysecretname

- A. Only when it is in the cert-manager namespace and of type kubernetes.io/tls
- B. Only when it has the next-private-key label and the Certificate owns it
- C. Only when its name is spec.secretName with a -next suffix added to it
- D. Only when it was created after the Certificate's latest CertificateRequest

**Answer:** Only when it has the next-private-key label and the Certificate owns it

**Explanation:** The requestmanager and issuing controllers now only consume that Secret if it carries the cert-manager.io/next-private-key label and is owned by the Certificate. This stops the controller from copying a private key out of a Secret the Certificate doesn't own. The keymanager always uses a generated name and records a NotOwned Warning event when the field names a Secret it doesn't own.

### Why do the trust-manager docs advise copying a cert-manager root CA into a separate ConfigMap instead of using its Secret as a Bundle source?

cert-manager, Hard (Expert), Security. https://k8wiz.com/uquiz/why-do-the-trust-manager-docs-advise-copying-a-cert-manager-root-ca-into-a-separate-configmap-instead-of-using-its-secret-as-a-b

- A. trust-manager can't read Secrets that cert-manager owns
- B. A root rotation would drop the old root from bundles at once
- C. A Secret source also copies tls.key into every target namespace
- D. Bundles only refresh Secret sources when trust-manager restarts

**Answer:** A root rotation would drop the old root from bundles at once

**Explanation:** When the issuer's Secret gets a new root, trust-manager updates the bundle immediately and stops trusting the old root, so services still using leaves from the old root break. A separate ConfigMap lets you hold both roots during rollover and remove the old one on your own schedule. trust-manager never needs or copies tls.key, and it can read Secrets in its trust namespace.
