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:
URL decode example:
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