| credence(1) | General Commands Manual | credence(1) |
credence —
Generate or check key pairs for services using
libDwmCredence
credence |
keygen [-i
identity] [-d
directory] |
credence |
keycheck [-d
directory] |
credence |
-v |
credence is a simple command-line utility
for creating and checking public/private keypairs (Ed25519) to be used by
services that utilize libDwmCredence for authentication. It operates in a
somewhat similar manner to
ssh-keygen(1) but does
not use passphrases and only uses Ed25519 keys (other key types are not
supported).
credence(1) operates in two possible modes: key generation and key checking.
credence keygen
[-i identity]
[-d directory]
Generates public and private key files. The following command line options are available:
-i
identity-d
directoryA user will normally use their email address as the identity, and not use the -d directory argument. They may then copy the contents of their ~/.credence directory onto any host from which they need access to services using libDwmCredence, taking care to maintain 0600 permissions on their key files and 0700 permissions on their ~/.credence directory. For example:
% credence keygen -i dwm@mcplex.net
A service will normally use a service name and hostname as the identity, and an appropriate location for the key files. For example:
# credence keygen -i mcblockd@gw.mcplex.net -d /usr/local/etc/mcblockd
credence keycheck
[-d directory]
Checks the validity of a public/private key pair. The following command line options are available:
-d
directoryIf the key pair is valid, "Valid key stash '<directory>'" will be printed on stdout and the credence(1) process will exit with status 0. If any error occurs (invalid keypair, missing file(s), etc.), credence(1) will print an error on stderr and exit with status 1.
Copyright © 2022 Daniel W. McRobb <dwm@mcplex.net>
| April 16, 2022 | mcplex.net |