I try to register a gitlab runner on my gtilab server and got this error :" x509: certificate relies on legacy Common Name field, use SANs instead".
I read a lot's of web pages, but i am confused to solve my problem.
- I installed gitlab using this link : gitlab install for ubuntu .
- On my gitlab, I looked at the page "settings-CI/CD-Runners "show runner installation"
- I executed the command "sudo gitlab-runner register --url https://myGitlab.com/ --registration-token my token
I read the following pages to find a solution:
- x509: certificate relies on legacy Common Name field, use SANs instead
- How do I use SANs with openSSL instead of common name?
- Self-signed certificates or custom Certification Authorities
I understood that I should generate a new certtificate for "the system" or for gitlab.Is that right ?
What is the simpler solution : to change the "system certificate" (as explained gitlab documentation) or to create a dedicated certificate for gitlab ?
But where is stored the system certificate on ubuntu ? or where do i define a custom certificate for the gitlab server ?
And last question : how to generate a good certificate ?
There is also this answer Troubleshooting - Setting up private GitLab server and connecting Gitlab Runners . Did someone test it ?
A great thanks for any helps.