Skip to content

Add ECDSA signing support for CloudFront URLs - #10659

Open
luigi617 wants to merge 1 commit into
v2from
feat-support-ECDSA-Cloudfront
Open

luigi617 wants to merge 1 commit into
v2from
feat-support-ECDSA-Cloudfront

Conversation

@luigi617

@luigi617 luigi617 commented Sep 17, 2026

Copy link
Copy Markdown

Issue #, if available:

Description of changes:
Support ECDSA encryption algorithms in CloudFront signed URLs.

Testing:
Generate test keys

TMP=$(mktemp -d)
openssl ecparam -name prime256v1 -genkey -noout -out "$TMP/ec_sec1.pem"        # EC SEC1
openssl pkcs8 -topk8 -nocrypt -in "$TMP/ec_sec1.pem" -out "$TMP/ec_pkcs8.pem"  # EC PKCS#8
openssl genrsa -out "$TMP/rsa.pem" 2048                                        # RSA (regression)
openssl ecparam -name secp384r1 -genkey -noout -out "$TMP/ec_p384.pem"         # not supported

Sign

python -m awscli cloudfront sign \
  --url https://d1.example.com/x --key-pair-id K123 \
  --private-key file://"$TMP/<output_pem>" --date-less-than 2030-01-01

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@luigi617
luigi617 force-pushed the feat-support-ECDSA-Cloudfront branch from 74f9129 to 1358d50 Compare September 17, 2026 16:46
@luigi617
luigi617 marked this pull request as ready for review September 17, 2026 16:47
@luigi617
luigi617 requested a review from a team as a code owner September 17, 2026 16:47
@luigi617 luigi617 changed the title Add ECDSA (P-256) signing support for CloudFront URLs Add ECDSA signing support for CloudFront URLs Sep 17, 2026
return 0


def _build_signer(private_key):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you put testing details in PR description with how you tested?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@luigi617
luigi617 force-pushed the feat-support-ECDSA-Cloudfront branch from 1358d50 to 7d781ff Compare September 22, 2026 14:41

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants