jasonsims / aws-cloudfront-sign

Utility module for AWS CloudFront
MIT License
175 stars 80 forks source link

Signed URL with expireTime > 2038 #53

Open phuctma opened 4 years ago

phuctma commented 4 years ago

I'm getting error when signing URL in AWS Lamda (Nodejs 8.10) for expireTime > 2038: expireTime must be less than January 19, 2038 03:14:08 GMT due to the limits of UNIX time

The date is accepted by business logic of our project. Is there any solution? or any alternative libraries for signing AWS URL?

Please support. Thanks.

pfeilbr commented 4 years ago

You may want to look into Class: AWS.CloudFront.Signer which is part of the AWS SDK for JavaScript

sachith-1 commented 2 years ago

I think the issue is with UNIX time, refer y2038.