Code examples for creating a signature for a signed URL (original) (raw)

This section includes downloadable application examples that demonstrate how to create signatures for signed URLs. Examples are available in Perl, PHP, C#, and Java. You can use any of the examples to create signed URLs. The Perl script runs on Linux and macOS platforms. The PHP example will work on any server that runs PHP. The C# example uses the .NET Framework.

For example code in JavaScript (Node.js), see Creating Amazon CloudFront Signed URLs in Node.js on the AWS Developer Blog.

For example code in Python, see Generate a signed URL for Amazon CloudFront in the AWS SDK for Python (Boto3) API Reference and this example code in the Boto3 GitHub repository.

Topics

Linux commands and OpenSSL for base64 encoding and encryption

Create a URL signature using Perl

Did this page help you? - Yes

Thanks for letting us know we're doing a good job!

If you've got a moment, please tell us what we did right so we can do more of it.

Did this page help you? - No

Thanks for letting us know this page needs work. We're sorry we let you down.

If you've got a moment, please tell us how we can make the documentation better.