Docker push to Gilab registry Self Signed Certs problem

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.

Can you helpme?
Thank you

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 ...

GODEBUG=x509ignoreCN=0 docker push—> same error

Then use proper certificates with SAN to avoid the error.