Open
Description
New API Proposal: Support for encrypted PEM private keys
Motivation:
Currently, the library can read and handle unencrypted PEM-encoded private keys, but it can't directly load encrypted PEM keys. This can be a limitation in scenarios where users need to store their private keys in an insecure place or when working with third-party APIs that give the users encrypted PEM keys (e.g., PassKit/Apple Wallet).
Also, there is a bit of inconsistency within the ecosystem, as NIOSSL supports them, but only for TLS/SSL related stuff.
Importance:
The best solution I know of at the moment is to use an openssl
executable (where available) inside a blocking Process
. That's how we do it currently in the vapor-community/PassKit library.
cc @0xTim