I cannot register Gitlab Runner 15.8.0 to Gitlab 15.8.0

Hello My environment is set up as follows.
When I type curl -v https://gitlab.local I get the error " TLS alert unknow CA (560)". With gitlab runner register I get the following error message. How can I overcome this problem and fix the gitlab-runner register problem.

curl -v https://gitlab.local

*** TLSv1.3 (OUT), TLS alert, unknown CA (560):**
*** SSL certificate problem: self signed certificate**
*** Closing connection 0**

Gitlab-runner register Error;

" 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 Deprecation - Support for registration tokens and server-side runner configuration parameters in `gitlab-runner register` command (#380872) · Issues · GitLab.org / GitLab · GitLab

ERROR: Registering runner… failed runner=GR1348941mM8T5TDy status=couldn’t execute POST against https://gitlab.local/api/v4/runners: Post “https://gitlab.local/api/v4/runners”: x509: certificate relies on legacy Common Name field, use SANs instead
**PANIC: Failed to register the runner. **
"

Gitlab Version : Gitlab 15.8.0 (omnibus install)
Git Version : 2.39
Gitlab Runner version : 15.8.0 ( Docker install )

thankyou for support.

GitLab Deprecation and Removal are independent of one another. From the linked issue, it looks like the removal of runner registration parameters is currently planned for GitLab v 17.0.

Have you attempted to follow the instructions found here?
https://docs.gitlab.com/runner/configuration/tls-self-signed.html