X509: certificate is valid for ingress.local

I’m trying to write into the vault on Kubernetes using the Golang client but I’m getting this error:

x509: certificate is valid for ingress.local

What should I do?