Skip to content

examples: prefer pemfile::private_key - #77

Merged
cpu merged 1 commit into
rustls:mainfrom
cpu:cpu-broader-pemfile-support
Jul 9, 2024
Merged

cpu merged 1 commit into
rustls:mainfrom
cpu:cpu-broader-pemfile-support

Conversation

@cpu

@cpu cpu commented Jul 9, 2024 •

Copy link
Copy Markdown
Member

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

cpu commented Jul 9, 2024

Copy link
Copy Markdown
Member Author

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

djc commented Jul 9, 2024

Copy link
Copy Markdown
Member

+1.

@cpu

cpu commented Jul 9, 2024

Copy link
Copy Markdown
Member Author

+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

cpu commented Jul 9, 2024

Copy link
Copy Markdown
Member Author

@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
@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