Command line tool to convert between PEM and JWK formats for RSA private and public keys.
Install using poetry by running:
poetry install
poetry build
pip install .Replace the last step with pipx install . for an isolated install with
pipx.
rsa-key-converter --helpConvert a private key in PEM format to JWK format:
rsa-key-converter -i pem -o jwk '<prive key in pem format>'
Convert a public key in JWK format to PEM format:
rsa-key-converter -i jwk -o pem -m public '<public key in JWK format>'