7

I am getting the following error when using wget to fetch a file:

  Issued certificate not yet valid.
To connect to www.atlassian.com insecurely, use ‘--no-check-certificate’.

Testing with openssl returns a similar message:

Verify return code: 9 (certificate is not yet valid)

5 Answers 5

19

Your system clock is likely set in the past.

1
  • Well, so easy ... Thanks a lot (specially on embedded devices it is good to check if RTC is set correctly ...)
    – hfrmobile
    Mar 31, 2017 at 8:42
2

When checking the ssl certificate 'notBefore' date with openssl it was valid... It turns out my calling machine's system time was way in the past.

1

Sync system clock:

timedatectl set-ntp true
0

For me the issue was system clock out of sync. I wanted to also provide a lync to the fix (setup ntp). How do I update a CentOS server's time from an authoritative time server?

1
  • 2
    please try to avoid link only answers. provide full answer into your post, with reference links. Oct 12, 2017 at 9:48
0

I fixed that following this tutorial: Network - NTP

Check if your system clock is correct:

timedatectl status
Local time: Fr 2018-02-23 08:47:13 UTC
                   Universal time: Fr 2018-02-23 08:47:13 UTC
                         RTC time: Fr 2018-02-23 08:47:13
                        Time zone: Etc/UTC (UTC, +0000)
        System clock synchronized: yes
 systemd-timesyncd.service active: yes
                  RTC in local TZ: no

If not, install chrony:

sudo apt install chrony

And start chronyd - the actual daemon to sync and serve via the NTP protocol

sudo chronyd

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .