Tls: failed to verify certificate: x509: certificate relies on legacy Common Name field, use SANs instead

I have a docker registry using self signed certificates. While trying to download an image using my kb8 yaml file I get the error:

tls: failed to verify certificate: x509: certificate relies on legacy Common Name field, use SANs instead

How can Kb8 be forced to use certs (self signed certs or not) with the legacy Common Name field? I wish I could choose between using the legacy system and the new one depending on how a registry is set.

Thanks in advance
Jose