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

feat(identity): support non-PKCS#12 identities #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

RaitoBezarius
Copy link

PKCS#12 identity (aka .pfx files) are often used to transport private
key material with a decryption password.

In scenarios where a Vault-like server is used to emit PKI certificates,
PFX files are not really used and certificates private key material is
installed in non swappable RAM locations directly without any decryption
password required.

This simplifies automatic rotation and rollouts to production
deployments when this is available.

Before this, it would be necessary to re-encode PEM-encoded DER private
key via openssl with an empty password and store it in another runtime
location.

I'm not exactly sure yet if this is the right design for it (in the context of the library),
e.g. I don't know if I'm breaking needlessly backward compatibility.

I'm also a bit dubious whether I should concatenate the CA cert chain to configure rusttls
if it's available.

Signed-off-by: Raito Bezarius [email protected]

PKCS#12 identity (aka .pfx files) are often used to transport private
key material with a decryption password.

In scenarios where a Vault-like server is used to emit PKI certificates,
PFX files are not really used and certificates private key material is
installed in non swappable RAM locations directly without any decryption
password required.

This simplifies automatic rotation and rollouts to production
deployments when this is available.

Before this, it would be necessary to re-encode PEM-encoded DER private
key via openssl with an empty password and store it in another runtime
location.

Signed-off-by: Raito Bezarius <[email protected]>
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.

1 participant