1.8.0-alpha4 • Published 6 years ago

@tanker/server-token v1.8.0-alpha4

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
6 years ago

Tanker Server Token

Generate the server token used for the Tanker Server Authentification.

CLI usage

tanker-generate-server-token options

Usage:

  • -h, --help Display help
  • -v, --version Current version of the server token
  • -c, --config Configuration file path
  • --server-id Unique identifier of the server
  • -o, --output Saves the token generated in a configuration file usable for tanker-httpd

Configuration file

The configuration file is a json file that can be downloaded from the Tanker dashboard, once when creating a Trustchain.

The server-id option can be omitted if a field with the serverId is added to the configuration file.

Example:

{
  "trustchainId": "<b64 trustchain id>",
  "trustchainPrivateKey": "<b64 trustchain private key>",
  "serverId": "ExampleServer"
}