#rustls #pem

rustls-pemfile

Basic .pem file parser for keys and certificates

6 releases (3 stable)

1.0.2 Jan 10, 2023
1.0.1 Aug 2, 2022
1.0.0 Apr 14, 2022
0.3.0 Feb 5, 2022
0.1.0 Dec 28, 2020

#11 in Cryptography

Download history 426521/week @ 2022-10-11 444723/week @ 2022-10-18 424935/week @ 2022-10-25 426959/week @ 2022-11-01 465385/week @ 2022-11-08 447924/week @ 2022-11-15 401066/week @ 2022-11-22 474999/week @ 2022-11-29 446722/week @ 2022-12-06 419031/week @ 2022-12-13 314598/week @ 2022-12-20 231122/week @ 2022-12-27 419395/week @ 2023-01-03 483851/week @ 2023-01-10 504949/week @ 2023-01-17 433762/week @ 2023-01-24

1,881,592 downloads per month
Used in 1,741 crates (179 directly)

Apache-2.0 OR ISC OR MIT

20KB
260 lines

rustls-pemfile

This is a basic parser for PEM-encodings commonly used for storing keys and certificates at rest.

It doesn't support reading encrypted keys: the cryptography standardised for this is typically very poor and doing so doesn't address a meaningful threat model.

Build Status Crate Documentation

Release history

  • 1.0.2 (2023-01-10)
    • Add ec_private_keys() helper function.
    • Update base64 to the latest version.
  • 1.0.1 (2022-08-02)
    • Enable parsing PEM files with non-UTF-8 content between items.
  • 1.0.0 (2022-04-14)
    • Initial stable release. No API changes.
  • 0.3.0 (2022-02-05)
    • Add SEC1 EC key format support (ie, "EC PRIVATE KEY" sections) thanks to @farcaller.
    • Make Item enum non-exhaustive.
  • 0.2.1 (2021-04-17)
    • Performance improvements thanks to @zz85.
  • 0.2.0 (2020-12-28)
    • Initial release.

License

rustls-pemfile is distributed under the following three licenses:

  • Apache License version 2.0.
  • MIT license.
  • ISC license.

These are included as LICENSE-APACHE, LICENSE-MIT and LICENSE-ISC respectively. You may use this software under the terms of any of these licenses, at your option.

Dependencies

~225KB