Skip to content

Raise friendly error when SHA1 signing is unavailable - #10662

Open
luigi617 wants to merge 1 commit into
v2from
fix-sha1-missing-handler
Open

luigi617 wants to merge 1 commit into
v2from
fix-sha1-missing-handler

Conversation

@luigi617

Copy link
Copy Markdown

Issue #, if available:

Description of changes:
Add friendly error message when SHA1 is not supported.

Command: .venv/bin/aws cloudfront sign --url http://example.com/hi --key-pair-id APKAEXAMPLE123 --private-key file:///tmp/pk.pem --date-less-than 2027-01-01
Error:

/home/ec2-user/aws-cli/.venv/lib64/python3.14/site-packages/urllib3/__init__.py:35: NotOpenSSLWarning: urllib3 v2 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'AWS-LC FIPS 5.2.0'. See: https://github.com/urllib3/urllib3/issues/3020
  warnings.warn(

aws: [ERROR]: Failed to sign the URL using the SHA1 hash algorithm: 7174 (AWS_ERROR_CAL_UNSUPPORTED_ALGORITHM): The specified algorithm is unsupported on this platform.. CloudFront signed URLs require RSA PKCS1 v1.5 signing with SHA1, which may be disabled by default on your platform. Enable SHA1 support in your system's crypto provider and try again. 

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 marked this pull request as ready for review September 18, 2026 00:45
@luigi617
luigi617 requested a review from a team as a code owner September 18, 2026 00:45
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.

1 participant