x509: certificate signed by unknown authority (possibly because of "crypto/rsa:...authority certificate "osmacbook")

4/4/2020

I was working on a project and learning docker with Kubernetes, and my containers keep showing up even when I tried to kill / remove / purge all of them. So I tried uninstall Docker and Minikube from my Mac, and also errased some folders from my Finder, such as /minikube, /docker and maybe one more. I reinstalled both and now when I try to use it with "docker ps" or "docker build..." it returns:

"x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "osmacbook")"

Recently I have also changed my MacBook name from "osmacbook" to "ols".

Anyone can help me please?

-- olserra
certificate
docker
kubernetes
x509
x509certificate

1 Answer

4/5/2020

This error message means that you do not have a trusted certificate, such as the default self-signed certificate

might be able to assist better if you could post your docker-info command output

Another approach is to skip tls verification for your environment; check here documentation on DOCKER_TLS_VERIFY variable

-- choppe
Source: StackOverflow