p2pe key
The p2pe key commands allow users to generate, export, list and delete service keys.
On Windows operating systems execute the command from an Administrator Command Prompt. Right-click the Command Prompt and select Run as Administrator.
Linux
p2pe key [command]
Windows
p2pe.exe key [command]
| Command | Description |
|---|---|
| generate | Generate a key on the service HSM. |
| list | List all keys available on the service HSM. |
| delete | Delete a key from the service HSM. |
| export | Export a key from the service HSM. |
| Flag | Description |
|---|---|
--help |
Help for the command. |
| Global Flags | Description |
|---|---|
[--caCert] |
Path to PEM-encoded CA certificate chain for server authentication. |
[--clientCert] |
Path to client's PEM-encoded certificate. Required for client authentication. Provide the value in the command or add the value to a configuration file. |
[--clientPvtKey] |
Path to client's PEM-encoded private key. Required for client authentication. Provide the value in the command or add the value to a configuration file. |
[--config] |
Path to configuration file containing options for --clientCert and --clientPvtKey in YAML format. If you create the configuration file at $HOME/.p2pe.yaml you do not need to provide the --config value in P2PE CLI commands. |
--host |
Service endpoint URL. (Default 0.0.0.0) |
--port |
Service port. (Default 8080) |
Note
If the CA-cert is available in the operating system trust store, you do not need to provide the path to the TLS trust store when using the P2PE CLI key commands.