From Fedora Project Wiki

m (Changed the category.)
m (added language block)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
= Configuring Pine and GPG =
{{autolang | base=yes}}


taken from http://spevack.org/PineGPG
Adapted from http://spevack.org/AlpineGPG
 
----


== General Setup ==
== General Setup ==


The goal is to be able to use Pine and GPG as follows:
The goal is to be able to use Alpine and GPG as follows:


* '''Send''' a message that is encrypted, signed, or both signed and encrypted.
* '''Send''' a message that is encrypted, signed, or both signed and encrypted.
Line 15: Line 13:
You need:
You need:


* [http://www.washington.edu/pine/ pine]  
* [http://www.washington.edu/alpine/ Alpine]  
* [http://business-php.com/opensource/ez-pine-gpg/ ez-pine-gpg]  
* [http://business-php.com/opensource/ez-pine-gpg/ ez-pine-gpg]  
* gnupg
* gnupg
Line 21: Line 19:
== Install ==
== Install ==


Pine is packaged as an RPM, and is easily installed.  ez-pine-gpg is shipped as a .tgz file -- you should extract it, and run the installation tool that comes with it.
Aline is packaged as an RPM, and is easily installed.  ez-pine-gpg is shipped as a .tgz file -- you should extract it, and run the installation tool that comes with it.
 


== Configuration ==
== Configuration ==
Line 29: Line 26:


<pre>
<pre>
display-filters=_LEADING("-----BEGIN PGP")_ /home/spevack/bin/ez-pine-gpg-incoming
# This variable takes a list of programs that message text is piped into
# after MIME decoding, prior to display.
display-filters=_LEADING("-----BEGIN PGP")_ /home/max/bin/ez-pine-gpg-incoming


sending-filters=/home/spevack/bin/ez-pine-gpg-sign _INCLUDEALLHDRS_,
# This defines a program that message text is piped into before MIME
/home/spevack/bin/ez-pine-gpg-encrypt _RECIPIENTS_ spevack,
# encoding, prior to sending
/home/spevack/bin/ez-pine-gpg-sign-and-encrypt _INCLUDEALLHDRS_ _RECIPIENTS_ spevack
sending-filters=/home/max/bin/ez-pine-gpg-sign _INCLUDEALLHDRS_,
    /home/max/bin/ez-pine-gpg-encrypt _RECIPIENTS_ gpg-identifier,
    /home/max/bin/ez-pine-gpg-sign-and-encrypt _INCLUDEALLHDRS_ _RECIPIENTS_ gpg-identifier
</pre>
</pre>


Make the following changes:
Make the following changes:


* ''/home/spevack/bin'' should be replaced with the installation path that you specified.
* ''/home/max/bin'' should be replaced with the installation path that you specified.
* In two places, the ''spevack'' after ''_RECIPIENTS_'' should be replaced with your GPG public key's identifier.  The reason you include your own GPG identifier here is so that if you send an encrypted message to "Alice", that message is also encrypted with your public key -- if you don't do this, then you will not be able to open that message in your sent-mail folder and remind yourself of what you wrote.
* In two places, the ''gpg-identifier'' after ''_RECIPIENTS_'' should be replaced with your GPG public key's identifier.  The reason you include your own GPG identifier here is so that if you send an encrypted message to "Alice", that message is also encrypted with your public key -- if you don't do this, then you will not be able to open that message in your sent-mail folder and remind yourself of what you wrote.


[[Category:Documentation]]
[[Category:Documentation]]

Latest revision as of 12:04, 13 December 2015

Adapted from http://spevack.org/AlpineGPG

General Setup

The goal is to be able to use Alpine and GPG as follows:

  • Send a message that is encrypted, signed, or both signed and encrypted.
  • Receive a message that is encrypted, and successfully decrypt it.
  • Receive a message that is signed, and successfully verify the signature.

You need:

Install

Aline is packaged as an RPM, and is easily installed. ez-pine-gpg is shipped as a .tgz file -- you should extract it, and run the installation tool that comes with it.

Configuration

You'll have to make some changes to your ~/.pinerc file. Here's a sample of mine:

# This variable takes a list of programs that message text is piped into
# after MIME decoding, prior to display.
display-filters=_LEADING("-----BEGIN PGP")_ /home/max/bin/ez-pine-gpg-incoming

# This defines a program that message text is piped into before MIME
# encoding, prior to sending
sending-filters=/home/max/bin/ez-pine-gpg-sign _INCLUDEALLHDRS_,
    /home/max/bin/ez-pine-gpg-encrypt _RECIPIENTS_ gpg-identifier,
    /home/max/bin/ez-pine-gpg-sign-and-encrypt _INCLUDEALLHDRS_ _RECIPIENTS_ gpg-identifier

Make the following changes:

  • /home/max/bin should be replaced with the installation path that you specified.
  • In two places, the gpg-identifier after _RECIPIENTS_ should be replaced with your GPG public key's identifier. The reason you include your own GPG identifier here is so that if you send an encrypted message to "Alice", that message is also encrypted with your public key -- if you don't do this, then you will not be able to open that message in your sent-mail folder and remind yourself of what you wrote.