I am trying to retrieve shareableurl by passing expiration of 1 hour from now. This code works well in my offline server, however when I upload it on my Online server I get the following error "The request timestamp was outside the valid time window."
System.DateTime expiration = System.DateTime.Now.AddHours(1);
shareableurl = cloud.GetShareableUrl(path, expiration).ToString();
This typically indicates that your server's time is more than 5 minutes plus/minus UTC. Atmos requires that the server time not be more than 5 minutes apart from UTC to prevent replay attacks.
The issue was that my server was 6 hrs back from UTC and I put 1 hour, now I put hours more then 6 hours and it works now.