#private-key #pkcs #pem #convert #format #pure #pkcs8

topk8

Convert private keys to PKCS#8 format in pure Rust

1 unstable release

0.0.1 Dec 10, 2021

#21 in #pem

Download history 3/week @ 2024-09-22 2/week @ 2024-09-29 708/week @ 2024-10-27 1626/week @ 2024-11-03

2,334 downloads per month

Apache-2.0

8KB
91 lines

topk8

Convert private keys to PKCS#8 format in pure Rust.

The following formats are supported at the moment:

  • PKCS#1 PEM (RSA PRIVATE KEY)
  • SEC1 PEM (EC PRIVATE KEY)

TODO

  • Test against OpenSSL
  • Upgrade rsa when RustCrypto/RSA#120 is resolved to avoid duplicate crates (der, pkcs8)

lib.rs:

Convert private keys to PKCS#8 format in pure Rust.

Dependencies

~5.5MB
~111K SLoC