KunterBuntesSeminar-WS12/KSP/caff
Zur Navigation springen
Zur Suche springen
caff - CA fire and forget
caff ist ein tolles Tool fuer Keysigningparties.
Installation
# aptitude install signing-party
Wer keinen lokalen Mailserver installiert und konfiguriert hat, kann msmtp benutzen und Mails ueber den Ikumsmailserver verschicken.
# aptitude install msmtp
caff konfigurieren
% cat > ~/.caffrc <<< "
\$CONFIG{'owner'} = 'Justus Winter';
\$CONFIG{'email'} = '4winter+caff@informatik.uni-hamburg.de';
\$CONFIG{'keyid'} = [ qw{D31E8882CADE3658} ];
"
msmtp konfigurieren
Wenn du msmtp benutzen moechtest, so musst du es konfigurieren und caff beibringen es zu nutzen:
% echo "\$ENV{'PERL_MAILERS'} = 'sendmail:/usr/bin/msmtp';" >> ~/.caffrc
% cat > ~/.msmtprc <<< '
# Set default values for all following accounts.
defaults
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile ~/.msmtp.log
# mailhost.informatik.uni-hamburg.de
account fbi
host mailhost.informatik.uni-hamburg.de
from 4winter@mailhost.informatik.uni-hamburg.de
auth on
user 4winter
account default : fbi
'
% chmod 600 ~/.msmtprc
% echo 'machine mailhost.informatik.uni-hamburg.de login 4winter password YOURPASSWD' >> ~/.netrc
% chmod 600 ~/.netrc
Testen!
% msmtp 4winter@informatik.uni-hamburg.de <<< 'this is a test'
caff benutzen
% eval `gpg-agent --daemon`
% caff -m ask-yes `grep pub mafia-ksp.txt| awk '{ print substr($2,7,14) }'`