Skip to content
Registry StackDocsv0.46.0

registry-render keygen command reference

View as Markdown

Generate a seal key and the certificate request for its seal certificate.

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

Generate a seal key and the certificate request for its seal certificate. Writes the private JWK owner-only to —key, the file a local-jwk signer’s privateKeyRef names, and a PKCS #10 request to —csr for the certificate authority. With —from-pem, converts an existing unencrypted PKCS #8 key instead of generating one. With —transit-unix-socket-path, the key is a Transit key a transit signer names: it signs the request through the signing proxy, and only —csr is written. No output file may exist, and no key material is printed.

registry-render keygen [OPTIONS] --csr <FILE> --common-name <TEXT>
ConditionRequirement
--transit-unix-socket-path <PATH> is presentAll of --transit-mount <ID>, --transit-key-name <ID>, --transit-key-version <VERSION> are required.
--transit-mount <ID> is presentAll of --transit-key-name <ID>, --transit-key-version <VERSION>, --transit-unix-socket-path <PATH> are required.
--transit-key-name <ID> is presentAll of --transit-mount <ID>, --transit-key-version <VERSION>, --transit-unix-socket-path <PATH> are required.
Command invocation--algorithm <ALGORITHM> and --transit-unix-socket-path <PATH> cannot be used together.
Command invocation--from-pem <FILE> and --transit-unix-socket-path <PATH> cannot be used together.
Command invocation--key <FILE> and --transit-unix-socket-path <PATH> cannot be used together.
OptionAlways requiredDefaultValuesEnvironmentDescription
--key <FILE>Non/an/an/aNew private JWK file, created with mode 0600
--csr <FILE>Yesn/an/an/aNew PEM certificate request file
--common-name <TEXT>Yesn/an/an/aThe seal’s name, the request’s commonName
--organization <TEXT>Non/an/an/aThe institution, the request’s organizationName
--country <CODE>Non/an/an/aThe ISO 3166 two-letter country code, the request’s countryName
--algorithm <ALGORITHM>Non/aes256, es384, rs256, rs384n/aSeal algorithm. Default: es256 for a generated key; for —from-pem, the one the key’s curve fixes, or rs256 for an RSA key
--from-pem <FILE>Non/an/an/aUnencrypted PKCS #8 PEM private key to convert. Encrypted PKCS #8, SEC 1, PKCS #1 and PKCS #12 files are refused with the openssl command that converts them
--transit-unix-socket-path <PATH>Non/an/an/aThe Transit signing proxy’s Unix socket, as signer.unixSocketPath names it: the seal key is a Transit key, which signs the request, and no key file is written. A production seal’s key is one
--transit-mount <ID>Non/an/an/aThe Transit mount, as signer.mount names it
--transit-key-name <ID>Non/an/an/aThe Transit key, an ecdsa-p256 key, as signer.keyName names it
--transit-key-version <VERSION>Non/an/an/aThe Transit key version the certificate is for, as signer.keyVersion pins it
-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.