Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x509: certificate has expired or is not yet valid #11534

Closed
cinterloper opened this issue Mar 21, 2015 · 24 comments
Closed

x509: certificate has expired or is not yet valid #11534

cinterloper opened this issue Mar 21, 2015 · 24 comments

Comments

@cinterloper
Copy link

https://index.docker.io/ has an expired SSL cert

@cinterloper
Copy link
Author

root# docker pull registry
Pulling repository registry
FATA[0000] Get https://index.docker.io/v1/repositories/library/registry/images: x509: certificate has expired or is not yet valid

@intlabs
Copy link

intlabs commented Mar 21, 2015

Can confirm :(

@chriskinsman
Copy link

Arggh. Blocking

@st3wart
Copy link

st3wart commented Mar 21, 2015

Same problem. Public or private registries.

@tiborvass
Copy link
Contributor

We are aware of the situation and are working on it as fast as we can. FYI for next time please send an email to support@docker.com, this github is about the open source project, not the Hub :) Thanks!

We'll be updating https://status.docker.com/ throughout the events.

@bobbytables
Copy link

For anyone else that runs into this and stumbles across this page, this fixes it for me:

boot2docker ssh
sudo ntpclient -s -h pool.ntp.org

Hope this helps.

@endeepak
Copy link

+1 for @bobbytables solution. It worked for me on mac.

@lukabirsa
Copy link

+1 for @bobbytables solution. Worked for me.

@DyegoCosta
Copy link

+1 for @bobbytables solution :)))

1 similar comment
@maximderbin
Copy link

+1 for @bobbytables solution :)))

@roylanceMichael
Copy link

+1 for @bobbytables solution as well (btw, love the xkcd reference). This worked on Windows like a charm (which makes sense, as the VM for mac and windows is similar I believe)

@danstn
Copy link

danstn commented May 14, 2015

Thanks, @bobbytables. Worked for me as well.

@resoliwan
Copy link

+1 for @bobbytables solution :)))

@sabya08
Copy link

sabya08 commented Jul 7, 2015

+1 for @bobbytables solution

@ruairiquinn
Copy link

Another +1 for @bobbytables solution

@pditommaso
Copy link

+1 for @bobbytables solution 👏

@asampat3090
Copy link

👍 for @bobbytables solution

@centerorbit
Copy link

I had a similar issue using the native Docker for Mac. It was giving me the same error.

@bobbytables solution implied that the clock drifted, and so the SSL connection could not be properly established. I've seen this before with VMs when the host computer is put to sleep, the VM time can drift from realtime.

Native Docker for Mac still has a VM, it's just a very thin Linux Hypervisor, yet still susceptible to clock drift. Simply restarting docker on the host machine fixed the problem.

@itsNikolay
Copy link

  • MacOS users that still getting the issue, try to restart Docker:

screenshot at nov 20 03-47-34

- For self signed certificates:

Append domain.crt to /etc/ssl/certs/ca-certificates.crt
with $ cat /certs/domain.crt > /etc/ssl/certs/ca-certificates.crt
More information here: https://forums.docker.com/t/adding-self-signed-certificates/9761/18

@kvaps
Copy link

kvaps commented Jul 25, 2017

Hi, I got same error. But I found out where is problem.

If your system time is fine, try to flush your dns-server cache first.
If it have big (>512 bytes) cached answer, it can be problem for iterpret by go dns library.
See: golang/go#21160
And if it can't get answer at first time, it will ask your search domain next time.

PS: I had same problem when I run kubeadm init:

unable to get URL "https://storage.googleapis.com/kubernetes-release/release/stable-1.7.txt": Get https://storage.googleapis.com/kubernetes-release/release/stable-1.7.txt: x509: certificate has expired or is not yet valid

@mostafaelsayyad
Copy link

if u r using centos then check machine date time, adjust it to the current time.
this worked for me.

@viay
Copy link

viay commented Jul 2, 2018

@itsNikolay Thanks. It worked for me

@dsw0214
Copy link

dsw0214 commented Jul 13, 2018

@mostafaelsayyad Thanks. It worked for me

@jaakkouu
Copy link

if u r using centos then check machine date time, adjust it to the current time.
this worked for me.

This fixed my problem on CentOS 6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests