aboutsummaryrefslogtreecommitdiff
path: root/lib/keyringer/actions/check
blob: 669b9941d69d61c6b5cd39b0d21ada87b8199a85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
#
# Check a keyring.
#
# See also some useful OpenPGP maintenance scripts:
#
#   - git://lair.fifthhorseman.net/~mjgoins/cur
#   - https://gitorious.org/key-report
#   - https://github.com/ilf/gpg-maintenance.git
#
# This script can run from a crontab, client of server side to check
# keyringer health status.

# Load functions
LIB="`dirname $0`/../functions"
source "$LIB" || exit 1

# TODO: Automatically fetch absent keys from all recipients.
# TODO: Automatically pull a repository.
# TODO: Check if keys in all recipients files are about to expire.
# TODO: Time to expire can be configured via repository options.
# TODO: Users can be alerted by mail if configured by user preferences.
# TODO: Check canaries' timestamps, warning by mail if configured by user preferences.
# TODO: Outgoing emails can be encrypted.
echo "Not implemented :("
exit 1