cascade hsm

Synopsis

cascade [GLOBAL OPTIONS] hsm <COMMAND>

cascade [GLOBAL OPTIONS] hsm add <SERVER_ID> <IP_HOST_OR_FQDN>

cascade [GLOBAL OPTIONS] hsm show <SERVER_ID>

cascade [GLOBAL OPTIONS] hsm list

Description

Manage the configuration of Hardware Security Modules (HSMs) in Cascade

Global Options

See Cascade CLI for information about global options supported by every CLI command.

Commands

add

Add a KMIP server to use for key generation & signing.

Note: There are no commands to remove or modify KMIP servers yet.

show

Get the details of an existing KMIP server.

list

List all configured KMIP servers.

Arguments for hsm show

<SERVER_ID>

The identifier of the KMIP server to show information about.

hsm add

Add a KMIP server to use for key generation & signing instead of using Ring/OpenSSL based key generation.

Arguments for hsm add

<SERVER_ID>

An identifier to refer to the KMIP server by.

This identifier is used with other cascade commands and Cascade policy files. The identifier serves several purposes:

1. To make it easy at a glance to recognize which KMIP server a given key was created on, by allowing operators to assign a meaningful name to the server instead of whatever identity strings the server associates with itself or by using hostnames or IP addresses as identifiers.

2. To refer to additional configuration elsewhere to avoid including sensitive and/or verbose KMIP server credential or TLS client certificate/key authentication data in each key identifier, and which would be repeated in every key created on the same server.

3. To allow the actual location of the server and/or its access credentials to be rotated without affecting key idenifiers, e.g. if a server is assigned a new IP address or if access credentials change.

<IP_HOST_OR_FQDN>

The hostname or IP address of the KMIP server.

Options for hsm add

-h, --help

Print the help text (short summary with -h, long help with --help).

Server:

--port <PORT>

TCP port to connect to the KMIP server on.

[default: 5696]

Client Credentials:

--username <USERNAME>

Optional username to authenticate to the KMIP server as.

Note: When using the Cascade cascade-hsm-bridge tool the username set here will be used as the label of the PKCS#11 token to login to.

--password <PASSWORD>

Optional password to authenticate to the KMIP server with.

Note: When using the Cascdee cascade-hsm-bridge tool the password set here will be used as the PKCS#11 PIN to login with.

Client Certificate Authentication:

--client-cert <CLIENT_CERT_PATH>

Optional path to a TLS certificate to authenticate to the KMIP server with. The file will be read and sent to the server.

--client-key <CLIENT_KEY_PATH>

Optional path to a private key for client certificate authentication. THe file will be read and sent to the server.

The private key is needed to be able to prove to the KMIP server that you are the owner of the provided TLS client certificate.

Server Certificate Verification:

--insecure

Whether to accept the KMIP server TLS certificate without verifying it.

Use this option when your KMIP server uses a self-signed TLS certificate, e.g. in a test environment.

--server-cert <SERVER_CERT_PATH>

Optional path to a TLS PEM certificate for the server.

--ca-cert <CA_CERT_PATH>

Optional path to a TLS PEM certificate for a Certificate Authority.

Client Limits:

--connect-timeout <CONNECT_TIMEOUT>

TCP connect timeout.

[default: 3s]

--read-timeout <READ_TIMEOUT>

TCP response read timeout.

[default: 30s]

--write-timeout <WRITE_TIMEOUT>

TCP request write timeout.

[default: 3s]

--max-response-bytes <MAX_RESPONSE_BYTES>

Maximum KMIP response size to accept (in bytes).

[default: 8192]

Key Labels:

--key-label-prefix <KEY_LABEL_PREFIX>

Optional user supplied key label prefix.

Can be used to denote the s/w that created the key, and/or to indicate which installation/environment it belongs to, e.g. dev, test, prod, etc.

--key-label-max-bytes <KEY_LABEL_MAX_BYTES>

Maximum label length (in bytes) permitted by the HSM. Key labels longer than this will be truncated to fit.

[default: 32]

See Also

https://cascade.docs.nlnetlabs.nl

Cascade online documentation

cascade(1)

Cascade CLI

cascaded(1)

Cascade Daemon

cascade-hsm-bridge(1)

KMIP to PKCS#11 bridge documentation