X509: certificate is not valid for any names

Hi all!

When trying to connect the runner gives the following error


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 --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

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

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 , 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.

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