Skip to content

fix: migrate from rustls-pemfile to rustls-pki-types#1011

Open
f-did wants to merge 1 commit into
bytebeamio:mainfrom
f-did:fix/migrate-rustls-pemfile-to-pki-types
Open

fix: migrate from rustls-pemfile to rustls-pki-types#1011
f-did wants to merge 1 commit into
bytebeamio:mainfrom
f-did:fix/migrate-rustls-pemfile-to-pki-types

Conversation

@f-did
Copy link
Copy Markdown

@f-did f-did commented Dec 9, 2025

Closes #1010

Replace deprecated rustls-pemfile with rustls-pki-types PemObject API.
The rustls-pemfile crate is unmaintained.

Type of change

Miscellaneous (related to maintenance)

Checklist:

  • Formatted with cargo fmt
  • Make an entry to CHANGELOG.md if it's relevant to the users of the library. If it's not relevant mention why.

@f-did f-did force-pushed the fix/migrate-rustls-pemfile-to-pki-types branch from 112e92e to 9a0a64d Compare December 9, 2025 14:49
Replace deprecated rustls-pemfile with rustls-pki-types PemObject API.
The rustls-pemfile crate is unmaintained.

- Use CertificateDer::pem_slice_iter() for certificate parsing
- Use PrivateKeyDer::from_pem_slice() for key parsing
- Remove rustls-pemfile dependency
- Remove obsolete first_private_key_in_pemfile() helper function

Closes bytebeamio#1010
Fixes RUSTSEC-2025-0134
@f-did f-did force-pushed the fix/migrate-rustls-pemfile-to-pki-types branch from 9a0a64d to 8d05bf7 Compare December 9, 2025 15:04
@f-did f-did marked this pull request as ready for review December 9, 2025 15:04
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.

RUSTSEC-2025-0134 is being triggered by cargo-deny for this crate.

1 participant