ck remote generate-cert

Generates a self-signed TLS certificate on the CanKingService host.

Synopsis

ck remote generate-cert
    <HOSTNAME>
    [--url <String>]
    [--api-key <String>]
    [--language <en|zh|ja>]
    [--ip <String>]
    [-o|--output <String>]
    [--pem-output <String>]
    [-p|--password <String>]
    [--days <Int32>]

ck remote generate-cert -h|--help

Arguments

  • HOSTNAME
    The DNS hostname or IP address the certificate will be issued for.

Options

  • --url
    Specify the URL of the CanKingService if connecting to a remote host. Falls back to the CANKING_REMOTE_URL environment variable. If not specified, the command will connect to a local CanKingService instance.

  • --api-key
    API key required when connecting to a remote CanKingService instance. Falls back to the CANKING_REMOTE_API_KEY environment variable.

  • --language
    Specify the preferred language to be used in all output strings. Default value is English (en). Supported languages are English (en), Chinese (zh), and Japanese (ja).

  • --ip
    Additional IP address SAN to include in the certificate.

  • -o|--output
    Where to save the PFX on the service host. It defaults to ‘/usr/share/Kvaser/CanKing/ca-certificates’ on Linux and to ‘C:\ProgramData\Kvaser\CanKing\ca-certificates’ on Windows. If no file is specified, the file will be named ‘.pfx’.

  • --pem-output
    Where to save the client PEM certificate on the service host. If not specified, the PEM file will be saved in the current folder. If no file is specified, the file will be named ‘.pem’.

  • -p|--password
    Password to protect the PFX file. If omitted, no password is set.

  • --days
    Number of days the certificate is valid. Default is 730.

Examples

ck remote generate-cert myserver.example.com
ck remote generate-cert myserver.example.com --ip 192.168.1.10 --password MySecret --days 365