Skip to main content
Version: Next

The tedge cert command

tedge cert
tedge-cert 
Create and manage device certificate

USAGE:
tedge cert <SUBCOMMAND>

OPTIONS:
-h, --help Print help information

SUBCOMMANDS:
create Create a self-signed device certificate
help Print this message or the help of the given subcommand(s)
remove Remove the device certificate
show Show the device certificate, if any
upload Upload root certificate

Create​

tedge cert create
tedge-cert-create 
Create a self-signed device certificate

USAGE:
tedge cert create --device-id <ID>

OPTIONS:
--device-id <ID> The device identifier to be used as the common name for the certificate
-h, --help Print help information

Create-csr​

tedge cert create-csr
Create a certificate signing request

Usage: tedge cert create-csr [OPTIONS] [COMMAND]

Commands:
c8y
az
aws
help Print this message or the help of the given subcommand(s)

Options:
--config-dir <CONFIG_DIR>
[env: TEDGE_CONFIG_DIR, default: /etc/tedge]

--device-id <ID>
The device identifier to be used as the common name for the certificate

--debug
Turn-on the DEBUG log level.

If off only reports ERROR, WARN, and INFO, if on also reports DEBUG

--output-path <OUTPUT_PATH>
Path where a Certificate signing request will be stored

--log-level <LOG_LEVEL>
Configures the logging level.

One of error/warn/info/debug/trace. Logs with verbosity lower or equal to the selected level will be printed, i.e. warn prints ERROR and WARN logs and trace prints logs of all levels.

Overrides `--debug`

-h, --help
Print help (see a summary with '-h')

Show​

tedge cert show
Show the device certificate, if any

Usage: tedge cert show [OPTIONS] [COMMAND]

Commands:
c8y
az
aws
help Print this message or the help of the given subcommand(s)

Options:
--cert-path <CERT_PATH>
Path to the certificate - default to the configured device certificate

--config-dir <CONFIG_DIR>
[env: TEDGE_CONFIG_DIR, default: /etc/tedge]

--debug
Turn-on the DEBUG log level.

If off only reports ERROR, WARN, and INFO, if on also reports DEBUG

--new
Show the new certificate, if any, instead of the current one

--log-level <LOG_LEVEL>
Configures the logging level.

One of error/warn/info/debug/trace. Logs with verbosity lower or equal to the selected level will be printed, i.e. warn prints ERROR and WARN logs and trace prints logs of all levels.

Overrides `--debug`

-h, --help
Print help (see a summary with '-h')

Remove​

tedge cert remove
Remove the device certificate

Usage: tedge cert remove [OPTIONS] [COMMAND]

Commands:
c8y
az
aws
help Print this message or the help of the given subcommand(s)

Options:
--config-dir <CONFIG_DIR>
[env: TEDGE_CONFIG_DIR, default: /etc/tedge]

--debug
Turn-on the DEBUG log level.

If off only reports ERROR, WARN, and INFO, if on also reports DEBUG

--log-level <LOG_LEVEL>
Configures the logging level.

One of error/warn/info/debug/trace. Logs with verbosity lower or equal to the selected level will be printed, i.e. warn prints ERROR and WARN logs and trace prints logs of all levels.

Overrides `--debug`

-h, --help
Print help (see a summary with '-h')

Upload​

tedge cert upload
Upload the device certificate to the cloud

If the device certificate has been renewed, then the new certificate is uploaded.

Usage: tedge cert upload [OPTIONS] <COMMAND>

Commands:
c8y Upload root certificate to Cumulocity
help Print this message or the help of the given subcommand(s)

Options:
--config-dir <CONFIG_DIR>
[env: TEDGE_CONFIG_DIR, default: /etc/tedge]

--debug
Turn-on the DEBUG log level.

If off only reports ERROR, WARN, and INFO, if on also reports DEBUG

--log-level <LOG_LEVEL>
Configures the logging level.

One of error/warn/info/debug/trace. Logs with verbosity lower or equal to the selected level will be printed, i.e. warn prints ERROR and WARN logs and trace prints logs of all levels.

Overrides `--debug`

-h, --help
Print help (see a summary with '-h')