Skip to content

Replace dependency on rsa with cryptography#4846

Merged
joguSD merged 5 commits intoaws:v2from
joguSD:use-cryptography
Jan 20, 2020
Merged

Replace dependency on rsa with cryptography#4846
joguSD merged 5 commits intoaws:v2from
joguSD:use-cryptography

Conversation

@joguSD
Copy link
Copy Markdown
Contributor

@joguSD joguSD commented Jan 16, 2020

This updates all customizations that used the rsa package with cryptography. This should be a drop in replacement. The only difference I've noticed is leniency for whitespace in the PEM file (openssl doesn't like whitespace in the middle of the PEM). Tested a local install in edit mode and the binary builds for Windows, Mac, and Linux.

Copy link
Copy Markdown
Contributor

@kyleknap kyleknap left a comment

Choose a reason for hiding this comment

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

🚢

@joguSD joguSD merged commit 0b5fead into aws:v2 Jan 20, 2020
kdaily added a commit to kdaily/aws-cli that referenced this pull request Sep 6, 2024
This is required to unblock updating our
`cryptography` pin:

aws#8895

This test was ported 5 years ago as is using a key
size of 512:

aws#4846

As of `cryptography==43.0.0` the minimum key size
allowed is 512:

pyca/cryptography@83dcbc1

This change bumps it up to a more reasonable value
of 2048. This has only a couple hundredths of a
second time difference to generate as tested on my
Mac.
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