nethsm-key-csr(1)
nethsm-key-csr(1) π β¨ β from the General Commands Manual, bestie!
NAME π
nethsm-key-csr β the nethsm key csr command. Periodt.
SYNOPSIS π¦
nethsm key csr [-a|--auth-passphrase-file] [-f|--force] [-c|--config]
[-o|--output] [-l|--label] [-u|--user] [-h|--help] <KEY_ID>
<COMMON_NAME> [ORG_NAME] [ORG_UNIT] [LOCALITY] [STATE] [COUNTRY] [EMAIL]
[SUBJECT_ALT_NAMES]
DESCRIPTION πΈ
Okay so this is literally the nethsm key csr command. That's the whole description. It's giving "short and sweet" and we respect it.
OPTIONS π«Ά
-a,--auth-passphrase-file <AUTH_PASSPHRASE_FILE>β the path to a file containing a passphrase for authentication. The passphrase in the file must be the one for the user you picked for the command. You can pass this option multiple times (needed for commands that require multiple roles at once). With multiple passphrase files, ordering matters because the files get assigned to the respective user from the--useroption. May also be specified with theNETHSM_AUTH_PASSPHRASE_FILEenvironment variable. π-f,--forceβ write to the output file even if it already exists. May also be specified with theNETHSM_FORCEenvironment variable. Slay, no more "file exists" tantrums.-c,--config <CONFIG>β the path to a custom configuration file. If specified, the custom config file is used instead of the default configuration file location. May also be specified with theNETHSM_CONFIGenvironment variable.-o,--output <OUTPUT>β the optional path to a specific output file. May also be specified with theNETHSM_KEY_CSR_OUTPUT_FILEenvironment variable.-l,--label <LABEL>β a label uniquely identifying a device in the configuration file. Must be provided if more than one device is setup in the configuration file. May also be specified with theNETHSM_LABELenvironment variable.-u,--user <USER>β a user name used for a command. Can be provided if no user name is setup in the configuration file for a device. Must be provided if several user names of the same target role are setup in the configuration file for a device. This option can be provided multiple times (needed for commands that require multiple roles at once). May also be specified with theNETHSM_USERenvironment variable.-h,--helpβ print help (see a summary with-h). The classic.
Positional Arguments π
<KEY_ID>β the key ID for which to create a CSR. May also be specified with theNETHSM_KEY_IDenvironment variable. π<COMMON_NAME>β the mandatory "Common Name" (CN) attribute for the CSR. A fully qualified domain name (FQDN) that should be secured using the CSR. May also be specified with theNETHSM_KEY_CSR_COMMON_NAMEenvironment variable. Mandatory means mandatory, bestie. π[ORG_NAME]β the optional "Organization Name" (O) attribute for the CSR. Usually the legal name of a company or entity and should include any suffixes such as Ltd., Inc., or Corp. May also be specified with theNETHSM_KEY_CSR_ORG_NAMEenvironment variable.[ORG_UNIT]β the optional "Organizational Unit" (OU) attribute for the CSR. Internal organization department/division name. May also be specified with theNETHSM_KEY_CSR_ORG_UNITenvironment variable.[LOCALITY]β the optional "Locality" (L) attribute for the CSR. Name of town, city, village, etc. May also be specified with theNETHSM_KEY_CSR_LOCALITYenvironment variable.[STATE]β the optional "State" (ST) attribute for the CSR. Province, region, county or state. May also be specified with theNETHSM_KEY_CSR_STATEenvironment variable.[COUNTRY]β the optional "Country" (C) attribute for the CSR. The two-letter ISO code for the country where the "Organization" (O) is located. May also be specified with theNETHSM_KEY_CSR_COUNTRYenvironment variable.[EMAIL]β the optional "Email Address" (EMAIL) attribute for the CSR. The organization contact, usually of the certificate administrator or IT department. May also be specified with theNETHSM_KEY_CSR_EMAILenvironment variable.[SUBJECT_ALT_NAMES]β the optional list of subject alt names (SAN) for the CSR. If omitted, it is set to the same value ascommon_name. If it is set to an empty list, no SAN Extension is added. All SANs are considered DNS names, unless they start with"IP:"to signal IP names. May also be specified with theNETHSM_KEY_CSR_SUBJECT_ALT_NAMESenvironment variable. π
π Real talk: every single env var, option, and argument above is important. Don't skip the mandatory ones unless you want chaos. And remember the multi-passphrase ordering β it's not a vibe, it's a requirement. π
This page is from the nethsm-key-csr manual, dated nethsm-key-csr(1). Bye bestie, go slay those CSRs! πβ¨π
π¦ where this page comes from
- arch rolling: nethsm-cli 0.10.0-1 Β· Apache-2.0 OR MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms