# Unable to connect to the server: x509: certificate has expired

Не стартуют сервисы. При попытке что либо сделать получаем проблему с сертификатом, например:

```shell
microk8s kubectl get pod
```

<p class="callout danger">Unable to connect to the server: x509: certificate has expired or is not yet valid: current time 2022-05-18T12:09:52+03:00 is after 2022-04-28T07:26:01Z</p>

Как лечить:

```shell
microk8s.refresh-certs --cert server.crt
```