Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6144

how to solve this errror "certificate relies on legacy Common Name field, use SANs instead" during gitlab runner registration?

$
0
0

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:

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.


Viewing all articles
Browse latest Browse all 6144

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>