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

topk8

Convert private keys to PKCS#8 format in pure Rust

1 unstable release

0.0.1 Dec 10, 2021

#18 in #pem

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

~4.5MB
~102K SLoC