Skip to content
Registry StackDocsDevelopment (unreleased)

evidencectl jwk from-pem command reference

View as Markdown

Convert one PEM public key into a public JWK whose kid is its RFC 7638 thumbprint.

This page is generated from the public Clap command tree for Registry Stack source version 0.49.0 and catalog SHA-256 28d5d52af386f116e4c09898a8bd154bd6eb75eba0b849260f913dec67aab044. Hidden implementation commands are omitted.

Convert one PEM public key into a public JWK whose kid is its RFC 7638 thumbprint. Accepts a PUBLIC KEY (SubjectPublicKeyInfo) or RSA PUBLIC KEY (PKCS #1) block: EC P-256 becomes ES256, EC P-384 becomes ES384, and RSA takes the algorithm named by --alg. A private key is refused.

evidencectl jwk from-pem [OPTIONS] <PEM>
ConditionRequirement
Command invocation--output <OUTPUT> and --output-dir <OUTPUT_DIR> cannot be used together.
ArgumentAlways requiredDefaultValuesEnvironmentDescription
<PEM>Yesn/an/an/aPEM public key file, or - to read standard input
OptionAlways requiredDefaultValuesEnvironmentDescription
--alg <ALG>Non/aes256, es384, rs256, rs384n/aJWS algorithm the key is published for; required for RSA keys
--output <OUTPUT>Non/an/an/aWrite the JWK to this file instead of standard output
--output-dir <OUTPUT_DIR>Non/an/an/aWrite the JWK into this existing directory as <kid>.jwk.json
--forceNon/an/an/aOverwrite an existing output file
--format <FORMAT>Nohumanhuman, json, junitn/aEmit the selected command’s report in this format. junit is accepted only by test and fixtures run
-h, --helpNon/an/an/aPrint help (see a summary with ‘-h’)

After changing a public command, argument, option, default, environment binding, or help description, run cargo run --locked -p registry-cli-docs -- --write, commit crates/registry-cli-docs/catalog.json, then run npm run generate from docs/site.