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 customizing key export format in Transit #212

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

cipherboy
Copy link
Member

Transit's export functionality didn't allow choosing the desired output key format and was largely inconsistent about typing. Symmetric keys (and ed25519!) were returned in raw (base64-encoded byte array) format, but RSA and EC keys were returned in their native container formats. This prevents easy interoperability as some tools will not read all of these formats easily; add "der" and "pem" forms for asymmetric keys, to allow native PKIX-typed exports (in typed SubjectPublicKeyInfo or PrivateKeyInfo containers).

Resolves: #86

@naphelps naphelps self-requested a review March 18, 2024 15:42
Transit's export functionality didn't allow choosing the desired output
key format and was largely inconsistent about typing. Symmetric keys
(and ed25519!) were returned in raw (base64-encoded byte array) format,
but RSA and EC keys were returned in their native container formats.
This prevents easy interoperability as some tools will not read all of
these formats easily; add "der" and "pem" forms for asymmetric keys, to
allow native PKIX-typed exports (in typed SubjectPublicKeyInfo or
PrivateKeyInfo containers).

Resolves: openbao#86

Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>
@naphelps naphelps merged commit 4b51c20 into openbao:main Mar 18, 2024
72 of 79 checks passed
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.

Transit: Add public key format
2 participants