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 loading pkcs#1 private key as well #1704

Merged
merged 1 commit into from
Apr 28, 2022

Conversation

lisongmin
Copy link
Contributor

I want to use the key pair generated by step-ca, and failed because it is saving as pkcs1 format like that:

-----BEGIN EC PRIVATE KEY-----
...
-----END EC PRIVATE KEY-----

pkcs8 is the future, but now there are many private keys saving as pkcs1 format.
It's better to support them.

Copy link
Collaborator

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! Some suggestions below.

crates/proto/src/rustls/tls_server.rs Show resolved Hide resolved
crates/proto/src/rustls/tls_server.rs Outdated Show resolved Hide resolved
@lisongmin lisongmin force-pushed the support-loading-pkcs1-private-key branch from bbb363a to a9c3947 Compare April 26, 2022 23:36
crates/proto/src/rustls/tls_server.rs Show resolved Hide resolved
@djc djc merged commit 788e056 into hickory-dns:main Apr 28, 2022
@lisongmin lisongmin deleted the support-loading-pkcs1-private-key branch April 28, 2022 14:11
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.

None yet

2 participants