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

examples: prefer pemfile::private_key #77

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

cpu
Copy link
Member

@cpu cpu commented Jul 9, 2024

Using rustls_pemfile::rsa_private_keys is overly specific, limiting use to just RSA keys with PKCS#1 encoding.

This commit switches to using rustls_pemfile::private_key which is tailor made for loading one private key in any of the supported formats.

Updates #76

@cpu cpu self-assigned this Jul 9, 2024
@cpu
Copy link
Member Author

cpu commented Jul 9, 2024

CI / MSRV (pull_request) Failing after 1m
...
error: package cc v1.1.0 cannot be built because it requires rustc 1.67 or newer, while the currently active rustc version is 1.63.0

This repo doesn't check in a lockfile, but it probably should? Fixing this sort of MSRV min version build error without is a bit annoying. @djc WDYT?

@djc
Copy link
Member

djc commented Jul 9, 2024

+1.

@cpu
Copy link
Member Author

cpu commented Jul 9, 2024

+1.

#78

Using `rustls_pemfile::rsa_private_keys` is overly specific, limiting
use to just RSA keys with PKCS#1 encoding.

This commit switches to using `rustls_pemfile::private_key` which is
tailor made for loading one private key in any of the supported formats.
@cpu cpu force-pushed the cpu-broader-pemfile-support branch from 6da3cdd to 3640e58 Compare July 9, 2024 19:58
@cpu
Copy link
Member Author

cpu commented Jul 9, 2024

@quininer Same thing here :-) Merging w/ one approval, but with the expectation that if you have feedback I will revisit.

@cpu cpu merged commit e618585 into rustls:main Jul 9, 2024
6 checks passed
@cpu cpu deleted the cpu-broader-pemfile-support branch July 9, 2024 20:05
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