Amazon CloudFront Signed URLs helper tool

Sample Code & Libraries>Amazon CloudFront Signed URLs helper tool
Community Contributed Software

  • Amazon Web Services provides links to these packages as a convenience for our customers, but software not authored by an "@AWS" account has not been reviewed or screened by AWS.
  • Please review this software to ensure it meets your needs before using it.

This tool helps in creating and decoding CloudFront signed URLs.

Details

Submitted By: Mustafa@AWS
AWS Products Used: Amazon CloudFront
Language(s): Perl
License: Apache License 2.0
Created On: November 12, 2009 1:52 AM GMT
Last Updated: November 12, 2009 2:24 AM GMT
Download
To use this tool, the following Perl CPAN packages are required:

MIME::Base64 URI

The OpenSSL package is also used by the script.

How to use:

cfsign.pl --action encode --url http://images.my-website.com/gallery1.zip --policy sample_policy.json --private-key privkey.pem --key-pair-id mykey

cfsign.pl --action encode --url http://images.my-website.com/gallery1.zip --expires 1257439868 --private-key privkey.pem --key-pair-id mykey

URL decode example:

cfsign.pl --action decode --url "http//mydist.cloudfront.net/?Signature=foo&Policy=bar&Key-Pair-Id=key-id
©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.