Followed this document Cert Signing to get the certificate issued.
I created cluster role and role binding to test it.
$ kubectl auth can-i create pods --as=myserver
yes
$ kubectl auth can-i list pods --as=myserver
no
$ kubectl auth can-i delete secrets --as=myserver
no
and
$ kubectl auth can-i create pods --user=myserver
error: You must be logged in to the server (Unauthorized)
How to get "certificate-authority", its EKS cluster?
Is there a command to setup the kubectl config to utilize the .key and .crt file in order to access the cluster?