Hi,I’m running GitLab with docker registry, now when I’m tryng to push image I’ve this error:
x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0
I’ve set GODEBUG=x509ignoreCN=0 in /etc/environment but no fix.
Hi @Uzzi
if you are using self-signed certificate can’t you just generate a new one with SAN a use that for GitLab server?
You can also try to run GODEBUG=x509ignoreCN=0 docker pull ...
You can also do the following. In /usr/lib/systemd/system/docker.service, add the following to [Service]
Environment=GODEBUG=x509ignoreCN=0
and reload/restart docker. You can also probably properly create /etc/systemd/system/docker.service.d/env.conf and put the following in a [Service] heading as well.
For non-systemd, just make sure that the above env var is set before starting docker.