Solutions to practice test - view certificates
Identify the certificate file used for the kube-api server
Identify the Certificate file used to authenticate kube-apiserver as a client to ETCD Server
Look for kubelet-client-key option in the file /etc/kubernetes/manifests/kube-apiserver.yaml
Look for cert file option in the file /etc/kubernetes/manifests/etcd.yaml
Look for CA Certificate in file /etc/kubernetes/manifests/etcd.yaml
Run the command openssl x509 -in /etc/kubernetes/pki/apiserver.crt -text
Run the command openssl x509 -in /etc/kubernetes/pki/apiserver.crt -text and look for issuer
Run the command openssl x509 -in /etc/kubernetes/pki/apiserver.crt -text and look at Alternative Names
Run the command openssl x509 -in /etc/kubernetes/pki/etcd/server.crt -text and look for Subject CN.
Run the command openssl x509 -in /etc/kubernetes/pki/apiserver.crt -text and check on the Expiry date.
Run the command ‘openssl x509 -in /etc/kubernetes/pki/ca.crt -text’ and look for validity
Inspect the –cert-file option in the manifests file.
ETCD has its own CA. The right CA must be used for the ETCD-CA file in /etc/kubernetes/manifests/kube-apiserver.yaml.