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

Add support for encrypted PEM file #198

Open
0xDRRB opened this issue Feb 6, 2025 · 0 comments
Open

Add support for encrypted PEM file #198

0xDRRB opened this issue Feb 6, 2025 · 0 comments

Comments

@0xDRRB
Copy link

0xDRRB commented Feb 6, 2025

It is possible to protect your PEM file with AES encryption and a password, with something like:

openssl ec -in keys.pem -out keys_encrypted.pem -aes256

but picotool does not have a mechanism for requesting the password and decrypting the file when the firmware is being signed:

ERROR: Failed to read key file /some/path/keys_encrypted.pem, error PK - Private key password can't be empty

It might be worth adding this level of protection. What do you think?

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

No branches or pull requests

1 participant