“Signature not yet current” Error When Making Requests To Amazon SDK

October 15th, 2012 - Posted by Steve Marks to PHP, Web Development.

Whilst recently playing with the Amazon SDK for PHP, I continuously got a response back claiming that the signature was not yet current, followed by a number of timestamps.

The Solution

A quick search for the error didn’t return anything useful, however luckily it was pretty straightforward to fix.

The problem was that the timestamp on the server was more than 5 minutes different from the time at Amazons side. A quick adjustment to the server time (it was 10 minutes in front) and the requests started to complete as expected.

This entry was posted on Monday, October 15th, 2012 at 7:25 pm by +Steve Marks and is filed under PHP, Web Development. You can follow any responses to this entry through the RSS 2.0 feed.

Fear not, we won't publish this

Comments (3)
  1. Thanks so much – solved my problem :)

  2. Graham says:

    I had this problem. Error log stated: ErrorCode:SignatureDoesNotMatch AmazonSQSException: Signature not yet current: 20131210T213954Z is still later than 20131210T205613Z (20131210T204113Z + 15 min.)
    It turned out that Windows time service was not configured properly and “apply daylight savings” was not checked causing the time discrepancy. Fixing these things resolved the issue.
    Thanks for sharing – you totally helped me find the solution.