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

Support PEM encoding for all key types #67

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

adityasaky
Copy link
Member

This change matches python-securesystemslib by retiring the custom serialization format. With this change, RSA, ED25519, and ECDSA keys can be loaded from standard PEM encoding, meaning custom tooling isn't needed to generate the keys. This commit adds deprecation warnings to prior Load methods that expected the custom format.

@lukpueh

@adityasaky
Copy link
Member Author

The scheme for ECDSA isn't quite right but I'd prefer to patch that separately.

@adityasaky adityasaky requested a review from mnm678 January 2, 2024 22:01
@adityasaky
Copy link
Member Author

Also, the existing test keys were converted using https://github.com/secure-systems-lab/securesystemslib/blob/main/docs/migrate_key.py and checked in.

This change matches python-securesystemslib by retiring the custom
serialization format. With this change, RSA, ED25519, and ECDSA keys can
be loaded from standard PEM encoding, meaning custom tooling isn't
needed to generate the keys. This commit adds deprecation warnings to
prior Load methods that expected the custom format.

Signed-off-by: Aditya Sirish <aditya@saky.in>
@adityasaky
Copy link
Member Author

Converted to draft until @lukpueh gets a chance to review, I don't want this to be merged accidentally. :)

@adityasaky adityasaky changed the base branch from main to pem-keys January 5, 2024 20:26
@adityasaky adityasaky marked this pull request as ready for review January 5, 2024 20:26
@adityasaky
Copy link
Member Author

I've changed the base branch so this can be merged for now. This will enable downstream testing, and we can merge to main after @lukpueh has a chance to review. Thanks @mnm678!

@adityasaky adityasaky merged commit 217bba2 into secure-systems-lab:pem-keys Jan 5, 2024
13 checks passed
@adityasaky adityasaky deleted the key-formats branch January 5, 2024 20:27
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