<p>When we setup a kubernetes master using kubeadm init . At the end of the procedure we have to copy the /etc/kubernetes/admin.conf to $home/.kube/config . </p>

<p>When I opened the file , I found the below details . </p>

<ul>
<li>certificate authority data</li>
<li>client certificate data</li>
<li>client key data </li>
</ul>

<p>I am aware the file is used for authentication when we try to access cluster using kubectl .  </p>

<p>What I am trying to understand is from where these details are generated ? . </p>

Bala
<p>You have two options
- Use the automatically generated certificates if you have installed k8s with kubeadm
- Create your own certificates. </p>

<p>Once you have the certificates, you can follow these steps to manually configure them
<a href="https://kubernetes.io/docs/setup/certificates/#configure-certificates-manually" rel="nofollow noreferrer">https://kubernetes.io/docs/setup/certificates/#configure-certificates-manually</a>
To create your own CA certificates, there are many google links and here is one for your reference.
<a href="http://pages.cs.wisc.edu/~zmiller/ca-howto/" rel="nofollow noreferrer">http://pages.cs.wisc.edu/~zmiller/ca-howto/</a>
If you are new to this, I would suggest you start with "A Single-level CA"</p>
