Released docs. You are viewing the documentation published with v0.48.0. Development docs are available at Latest.
evidencectl jwk from-pem command reference
Convert one PEM public key into a public JWK whose kid is its RFC 7638 thumbprint.
Contract status
Section titled “Contract status”This page is generated from the public Clap command tree for Registry Stack source version 0.48.0 and catalog SHA-256 a96331a48f2b131715c8f06aaf5784a9b96ec7cb1ed75b89d46e00051b50d3bc. Hidden implementation commands are omitted.
Description
Section titled “Description”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>Constraints
Section titled “Constraints”| Condition | Requirement |
|---|---|
| Command invocation | --output <OUTPUT> and --output-dir <OUTPUT_DIR> cannot be used together. |
Arguments
Section titled “Arguments”| Argument | Always required | Default | Values | Environment | Description |
|---|---|---|---|---|---|
<PEM> | Yes | n/a | n/a | n/a | PEM public key file, or - to read standard input |
Options
Section titled “Options”| Option | Always required | Default | Values | Environment | Description |
|---|---|---|---|---|---|
--alg <ALG> | No | n/a | es256, es384, rs256, rs384 | n/a | JWS algorithm the key is published for; required for RSA keys |
--output <OUTPUT> | No | n/a | n/a | n/a | Write the JWK to this file instead of standard output |
--output-dir <OUTPUT_DIR> | No | n/a | n/a | n/a | Write the JWK into this existing directory as <kid>.jwk.json |
--force | No | n/a | n/a | n/a | Overwrite an existing output file |
--format <FORMAT> | No | human | human, json, junit | n/a | Emit the selected command’s report in this format. junit is accepted only by test and fixtures run |
-h, --help | No | n/a | n/a | n/a | Print help (see a summary with ‘-h’) |
Generation contract
Section titled “Generation contract”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.
Cookies on Registry Stack
We use optional cookies to understand how you use the main Registry Stack website and this documentation. If you contact us, we may link this activity to your enquiry. You can change your choice at any time. Read the privacy policy.
Your browser asks sites not to track you, so optional tracking stays off.
We could not use or save that choice. Optional tracking remains off.