<p>In any given POD, service account token is is mounted at location.  </p>

<p>/var/run/secrets/kubernetes.io/serviceaccount/token</p>

<p>I want to understand how this token is signed. What keys are used while signing this token by Kubernetes? How to get access to public key that can help in offline signature validation </p>

<p>/var/run/secrets/kubernetes.io/serviceaccount/ca.crt - I tried signature validation with the public key associated with this certificate. This does not seem to work. </p>

<p>Appreciate any help on this. </p>

Milind Torney
<p>You can check the service account file from <code>kube-apiserver</code> pod yaml file. There is a flag which is:</p>

<pre><code> --service-account-key-file=/etc/kubernetes/pki/sa.pub
</code></pre>

<p>From <strong>master</strong> node check <code>/etc/kubernetes/pki</code> directory.</p>
