If your centos server’s time is off by just few seconds, or 1 and half minute like mine, you are probably missing NTP deamon which would synchronize time with remote server.
Login as root ( or prepend sudo in front of following commands
yum install ntp ntpdate ntp-doc chkconfig ntpd on ntpdate pool.ntp.org systemctl enable ntpd systemctl start ntpd
And that’s it, you should see a message telling you how much off your time was. And if you do a date command now, it should show the exact same date as your computer.
root@server: ~# ntpdate pool.ntp.org 17 Oct 10:06:43 ntpdate: step time server 22.214.171.124 offset -32.044835 sec