add authkey command

authkey manages a list of keys other than the game key (which is managed
by authsetup). For example, this can be server owner keys or clan boss
keys.

authkey clear
  Empties the list and comments out all lines in config/authkeys.cfg.

authkey list
  Lists all authkeys that are currently in memory.

authkey delete keyname
  Deletes the key <keyname> from memory.

authkey new keyname
  Generates a new key with the name <keyname>. If a key of that name
  already exists, it is deleted. The key is added to the list in memory
  and also written to the file config/authkeys.cfg.

authkey add keyname privkey
  Adds a key with the name <keyname> to the list in memory. The privkey
  is a 32-byte hexadecimal string, preferrably generated by authkey new.
  The matching public key is generated automatically from the private key.

authkey selfcert keyname [comment]
  Generates a self-signed certificate for the key <keyname>. Being able to
  create such a cert is proof, that you own the private key of a certain
  public key.

DOCREF authkey
This commit is contained in:
ac-stef
2016-08-26 14:28:54 +02:00
parent 381e770210
commit 400f1a318d
3 changed files with 138 additions and 19 deletions
+1
View File
@@ -1283,6 +1283,7 @@ int main(int argc, char **argv)
exec("config/admin.cfg");
execfile("config/servers.cfg");
execfile("config/pcksources.cfg");
execfile("config/authkeys.cfg");
execfile("config/authprivate.cfg");
loadhistory();
setupautodownload();