I’ve followed every step under Certificate Signing Requests | Kubernetes but I’m getting the following error when attempting to authenticate:
Unable to connect to the server: tls: failed to find any PEM data in certificate input
I’ve verified that the certificate value at status.certificate in the approved/issued csr is the same value that’s in client-certificate-data.
$ kubectl get csr ken NAME AGE SIGNERNAME REQUESTOR CONDITION ken 38m kubernetes.io/kube-apiserver-client kubernetes-admin Approved,Issued
What am I missing here?
Kubernetes version: 1.19.2
Cloud being used: Virtualbox
Installation method: kubeadm
Host OS: Ubuntu 20.04
CNI and version: calico v3.17.1