# X509: certificate is not valid for any names

**URL:** <https://forum.gitea.com/t/x509-certificate-is-not-valid-for-any-names/7411>\
**Category:** General\
**Created:** [June 11, 2023, 10:38am UTC](https://forum.gitea.com/t/x509-certificate-is-not-valid-for-any-names/7411 "2023-06-11T10:38:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![general\_rj45](https://avatars.discourse-cdn.com/v4/letter/g/74df32/32.png) [@general\_rj45](https://forum.gitea.com/u/general_rj45)\
**Post date:** [June 11, 2023, 10:38am UTC](https://forum.gitea.com/t/x509-certificate-is-not-valid-for-any-names/7411/1 "2023-06-11T10:38:07Z")

</div>

Hi all!

When trying to connect the runner gives the following error

```auto

INFO Registering runner, arch=amd64, os=linux, version=v0.1.8.
INFO Runner name is empty, use hostname 'gitea-run'.
ERRO Cannot ping the Gitea instance server error="unavailable: tls: failed to verify certificate: x509: certificate is not valid for any names, but wanted to match home.url.net"
ERRO Cannot ping the Gitea instance server error="unavailable: tls: failed to verify certificate: x509: certificate is not valid for any names, but wanted to match home.url.net"
^CERRO Cannot ping the Gitea instance server error="unavailable: tls: failed to verify certificate: x509: certificate is not valid for any names, but wanted to match home.url.net"
ERRO Cannot ping the Gitea instance server error="unavailable: tls: failed to verify certificate: x509: certificate is not valid for any names, but wanted to match home.url.net"

```

My command connect:

./act\_runner register --no-interactive --instance [https://home.url.net](https://home.url.net) --token bXQasdasdsaKvHgdwfasd213120RZVr3O2I

Uploaded the certificate and did a check

openssl verify -CAfile /etc/ssl/certs/ca-certificates.crt example.crt  
example.crt: OK

While I decided to run the docker image [GitHub - vegardit/docker-gitea-act-runner: Docker image based on debian:stable-slim to run Gitea's act\_runner as a Docker container](https://github.com/vegardit/docker-gitea-act-runner)

---

<div class="post-metadata">

**Author:** ![cabiamdos](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/cabiamdos/32/4570_2.png) [@cabiamdos](https://forum.gitea.com/u/cabiamdos)\
**Post date:** [April 2, 2024, 3:36pm UTC](https://forum.gitea.com/t/x509-certificate-is-not-valid-for-any-names/7411/2 "2024-04-02T15:36:37Z")

</div>

I have the exact same issue, any help on how to fix?

---

<div class="post-metadata">

**Author:** ![general\_rj45](https://avatars.discourse-cdn.com/v4/letter/g/74df32/32.png) [@general\_rj45](https://forum.gitea.com/u/general_rj45)\
**Post date:** [April 5, 2024, 11:23am UTC](https://forum.gitea.com/t/x509-certificate-is-not-valid-for-any-names/7411/3 "2024-04-05T11:23:30Z")

</div>

Hi! I solved the problem, but I did it a long time ago, I can suggest deploying gitea runner as in my article on habr [https://habr.com/ru/articles/743782/#7.%20Gitea%20act%20runner](https://habr.com/ru/articles/743782/#7.%20Gitea%20act%20runner) , but it’s in Russian =( I hope it helps, I’ll look for the configuration of my gitea and try to remember, if I find something I’ll send you.

---

<div class="post-metadata">

**Author:** ![general\_rj45](https://avatars.discourse-cdn.com/v4/letter/g/74df32/32.png) [@general\_rj45](https://forum.gitea.com/u/general_rj45)\
**Post date:** [April 5, 2024, 11:25am UTC](https://forum.gitea.com/t/x509-certificate-is-not-valid-for-any-names/7411/4 "2024-04-05T11:25:47Z")

</div>

As I remember, you must have https configured, please tell us in more detail about your configuration.
