AWS Developer Tools Blog
Generating Amazon S3 Pre-signed URLs with SSE-C (Part 4)
In Part 3 of this blog, we demonstrated how you can generate and consume pre-signed URLs using SSE-S3. In this blog, I will provide code examples to show how you can generate and consume pre-signed URLs using one of the more advanced options, namely SSE-C (server-side encryption with customer-provided encryption keys). The code samples assume the version of the AWS SDK for Java to be 1.9.31 or later.
Server-Side Encryption with Customer-Provided Encryption Keys (SSE-C)
Here’s how to generate a pre-signed PUT URL using SSE-C:
Here’s how to make use of the generated pre-signed PUT URL via the Apache HttpClient (4.3):
Here’s how to generate a pre-signed GET URL for use with SSE-C:
Here’s how to make use of the generated pre-signed GET URL via the Apache HttpClient (4.3):
In Part 5, the last blog of this series, I will provide code examples that show how to generate and consume pre-signed URLs using SSE-C, but restricting the URLs to be used only with specific customer-provided encryption keys.
Stay tuned!