Weblog entry #1 for squantrill
#1
Alpine and gpg
Posted by squantrill on Wed 13 Feb 2008 at 12:51
I was trying to configure gpg to work under alpine this is what I have so far:
1. Install and configure gpg
2. Install and configure alpine
first link some stuff
ln -s /usr/bin/gpg /usr/bin/encrypt
ln -s /usr/bin/gpg /usr/bin/sign
then edit .pinerc
Display-Filters=_LEADING("-----BEGIN PGP SIGNED MESSAGE")_ /usr/bin/gpg --decrypt
_LEADING("-----BEGIN PGP MESSAGE")_ /usr/bin/gpg --decrypt
Sending-Filters=/usr/bin/encrypt --encrypt -r _RECIPIENTS_ -a,
/usr/bin/sign --clearsign
Now when you send an email should ask for a filter use control-n control-p to select encrypt or sign ..
As nobody has sent gpg encode mail to me havent got a clue if the decrypt works but it should do ;)
1. Install and configure gpg
2. Install and configure alpine
first link some stuff
ln -s /usr/bin/gpg /usr/bin/encrypt
ln -s /usr/bin/gpg /usr/bin/sign
then edit .pinerc
Display-Filters=_LEADING("-----BEGIN PGP SIGNED MESSAGE")_ /usr/bin/gpg --decrypt
_LEADING("-----BEGIN PGP MESSAGE")_ /usr/bin/gpg --decrypt
Sending-Filters=/usr/bin/encrypt --encrypt -r _RECIPIENTS_ -a,
/usr/bin/sign --clearsign
Now when you send an email should ask for a filter use control-n control-p to select encrypt or sign ..
As nobody has sent gpg encode mail to me havent got a clue if the decrypt works but it should do ;)
Comments on this Entry
Posted by Anonymous (75.185.xx.xx) on Sat 7 Mar 2009 at 20:07
I'm curious why you linked. I didn't and everything works for me.
As a suggestion, you could send yourself an encrypted message ...
As a suggestion, you could send yourself an encrypted message ...
[ Parent | Reply to this comment ]
Posted by Anonymous (210.24.xx.xx) on Wed 27 May 2009 at 06:55
I've got error:
/usr/bin/encrypt: illegal option -- encrypt
encrypt: usage: encrypt -l | -a <algorithm> [-k <keyfile>] [-i <infile>]
[-o <outfile>]
/usr/bin/encrypt: illegal option -- encrypt
encrypt: usage: encrypt -l | -a <algorithm> [-k <keyfile>] [-i <infile>]
[-o <outfile>]
[ Parent | Reply to this comment ]
Posted by Anonymous (198.124.xx.xx) on Mon 8 Jun 2009 at 22:33
It's because alpine only echoes the command name when selecting the Sending-Filter. This is a simple way to distinguish "gpg -aes" from "gpg --clearsign".
I instead followed another thread and created wrapper scripts like:
gpg-sign:
#!/bin/sh
gpg --clearsign
gpg-encrypt:
#!/bin/sh
gpg -aes "$@"
for use with these alpine settings:
sending-filters=/local/bin/gpg-encrypt -r _RECIPIENTS_,
/local/bin/gpg-sign
I instead followed another thread and created wrapper scripts like:
gpg-sign:
#!/bin/sh
gpg --clearsign
gpg-encrypt:
#!/bin/sh
gpg -aes "$@"
for use with these alpine settings:
sending-filters=/local/bin/gpg-encrypt -r _RECIPIENTS_,
/local/bin/gpg-sign
[ Parent | Reply to this comment ]