<p>How to rotate the certificates of a K8s cluster when Rancher version does not provide this option? I have Rancher 2.1.7 and I don't find anything about that. Do you know an API or command line doing the job?</p>
<p>I tried API with action=rotateCertificates but it returns InvalidAction.
I can't update Rancher.</p>

<p>It looks very clear 🔮 on how to do it on the <a href="https://rancher.com/docs/rancher/v2.x/en/cluster-admin/certificate-rotation/#certificate-rotation-in-rancher-v2-1-x-and-v2-0-x" rel="nofollow noreferrer">docs</a>:</p>
<blockquote>
<p>Available as of v2.0.14 and v2.1.9</p>
<p>Rancher launched Kubernetes clusters have the ability to rotate the
auto-generated certificates through the API.</p>
<ol>
<li><p>In the Global view, navigate to the cluster that you want to rotate
certificates.</p>
</li>
<li><p>Select the ⋮ &gt; View in API.</p>
</li>
<li><p>Click on RotateCertificates.</p>
</li>
<li><p>Click on Show Request.</p>
</li>
<li><p>Click on Send Request.</p>
</li>
</ol>
</blockquote>
<p>✌️☮️</p>
