Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing a passphrase callback when loading a public key #2135

Merged
merged 2 commits into from
Dec 25, 2023

Conversation

alex
Copy link
Collaborator

@alex alex commented Dec 25, 2023

No description provided.

@alex
Copy link
Collaborator Author

alex commented Dec 25, 2023

Unfortuantely, in OpenSSL 3, if you have a password protected PEM and you load it as a public key, it'll prompt on the CLI for a passphrase: pyca/cryptography#7129

@sfackler
Copy link
Owner

Do you need to know the passphrase to load the public key?

@alex
Copy link
Collaborator Author

alex commented Dec 25, 2023

I'll be honest, I don't really care about loading the keys, I care about being able to use the callback to error out, rather than to try to read the key from stdin.

@alex alex merged commit 93d172b into sfackler:master Dec 25, 2023
53 checks passed
@alex alex deleted the password-pem-public-key branch December 25, 2023 02:49
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