List jurisdictions
dacslist [\m[blue]dacsoptions\m[]\s-2\u[1]\d\s+2] [-f] [-j jurisdiction-name] [-k]
This program is part of the DACS suite.
For a jurisdiction configured on the host where this program is run, the dacslist utility lists information about all known jurisdictions in the same federation. It can also display information about the federation.
This program is also available as a DACS web service, \m[blue]dacs_list_jurisdictions(8)\m[]\s-2\u[2]\d\s+2.
Security
Because this program may access the federation and jurisdiction key files (item types federation_keys and jurisdiction_keys, respectively), only the DACS administrator should be able to run this command.
The program respects the -format flag. Except for error messages, information is printed to the standard output.
-f
Only list information about the federation. Equivalent to -j "".
-j jurisdiction-name
Limit the output to the specified jurisdiction name. As a special case, if the argument is the empty string, only federation-scoped information will be returned.
-k
Only the federation's or a jurisdiction's public key (if known) will be displayed. If -j is given and is not the empty string, that jurisdiction name is selected; if -j is given and is the empty string, the federation is selected; and if the argument is absent, the current jurisdiction is selected. A PEM [\m[blue]RFC 1421\m[]\s-2\u[3]\d\s+2, \m[blue]RFC 1422\m[]\s-2\u[4]\d\s+2, \m[blue]RFC 1423\m[]\s-2\u[5]\d\s+2, \m[blue]RFC 1424\m[]\s-2\u[6]\d\s+2] formatted key is returned.
Note
In the current implementation, a jurisdiction's public key can only be provided by one of the jurisdictions configured on the same host.
To list all jurisdictions in the same federation as jurisdiction J1, which must be configured on this host:
% dacslist -uj J1
To copy the public encryption key for J1 to pubkey:
% dacslist -uj J1 -k > pubkey
To display the public encryption key for J1's federation:
% dacslist -uj J1 -f -k
To retrieve the public encryption key for J1, which must be in the same federation as J2:
% dacslist -uj J2 -k -j J1
To display information about the federation to which jurisdiction J1 belongs:
% dacslist -uj J1 -f
The program exits 0 if everything was fine, 1 if an error occurred. Error messages are printed to stderr.
\m[blue]dacs_list_jurisdictions(8)\m[]\s-2\u[2]\d\s+2, \m[blue]dacs.groups(5)\m[]\s-2\u[7]\d\s+2
Distributed Systems Software (\m[blue]www.dss.ca\m[]\s-2\u[8]\d\s+2)
Copyright2003-2012 Distributed Systems Software. See the \m[blue]LICENSE\m[]\s-2\u[9]\d\s+2 file that accompanies the distribution for licensing information.
dacsoptions
http://dacs.dss.ca/man/dacs.1.html#dacsoptions
http://dacs.dss.ca/man/dacs_list_jurisdictions.8.html
RFC 1421
http://www.rfc-editor.org/rfc/rfc1421.txt
RFC 1422
http://www.rfc-editor.org/rfc/rfc1422.txt
RFC 1423
http://www.rfc-editor.org/rfc/rfc1423.txt
RFC 1424
http://www.rfc-editor.org/rfc/rfc1424.txt
http://dacs.dss.ca/man/dacs.groups.5.html
www.dss.ca
http://www.dss.ca
LICENSE
http://dacs.dss.ca/man/../misc/LICENSE