kwil-admin node gen-auth-key
kwil-admin node gen-auth-key
Generate a new key pair for use with an authenticated admin RPC service.
Synopsis
Generate a new key pair for use with an authenticated admin RPC service.
The key pair is generated and stored in the node's configuration directory, in the files auth.key and auth.cert. The key pair is used to authenticate the admin tool to the node.
kwil-admin node gen-auth-key [flags]
Examples
# Generate a new TLS key pair to talk to the node
kwil-admin node gen-auth-key
cat ~/.kwil-admin/auth.cert >> ~/.kwild/clients.pem # or copy to remote kwild machine
# kwil-admin uses auth.{key,cert}, while kwild uses clients.pem
Options
-h, --help help for gen-auth-key
--tlscert string output path for the new client certificate (default "auth.cert")
--tlskey string output path for the new client key file (default "auth.key")
Options inherited from parent commands
--output string the format for command output - either 'text' or 'json' (default "text")
-S, --silence Silence logs
SEE ALSO
- kwil-admin node - The
node
command is used to get information about a running Kwil node.