Cannot register gitlab-runner
I had just installed Gitlab_runner and Gitlab on my virtual machine to test something. After finishing install Gitlab_runner and check the service was active, I ran this command:
sudo gitlab-runner register
After I filled in the content, I gave the result like that:
WARNING: Support for registration tokens and runner parameters in the 'register' command has been deprecated in GitLab Runner 15.6 and will be replaced with support for authentication tokens. For more information, see https://gitlab.com/gitlab-org/gitlab/-/issues/380872 ERROR: Registering runner... failed runner=GR13489418KHyRDyb status=couldn't execute POST against https://192.168.21.118/api/v4/runners: Post "https://192.168.21.118/api/v4/runners": x509: certificate relies on legacy Common Name field, use SANs instead PANIC: Failed to register the runner.
How can I fix this problem?