Thanks to visit codestin.com
Credit goes to lib.rs

#private-key #pkcs #pem #pkcs8

topk8

Convert private keys to PKCS#8 format in pure Rust

1 unstable release

0.0.1 Dec 10, 2021

#30 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)

Dependencies

~6.5MB
~132K SLoC