Mcabber WikiMain Page | About | Help | FAQ | Special pages | Log in

Printable version | Disclaimers | Privacy policy

OpenPGP

From Mcabber Wiki

Contents

MCabber OpenPGP support

This page explains how to set up PGP support in mcabber.

You will need mcabber version >= 0.9.0.

Building mcabber with OpenPGP support

Note: You need libgpgme > 1.0.0 (for example, libgpgme11 & libgpgme11-dev in Debian) to build mcabber with OpenPGP support.

Enabling OpenPGP

Once mcabber is built with PGP support, you will have to set it up.

In the configuration file, enable pgp and set pgp_private_key to your key id.
Your key id can be found with the following command: gpg --list-keys --keyid-format long your_name

Example (in $HOME/.mcabber/mcabberrc):

set pgp = 1
set pgp_private_key = "E3E6A9C1A6A013D3"

Encrypting messages

Now when you start mcabber, it should ask for your passphrase (unless you put it in your configuration file or you use gpg-agent).

If you want to know if a contact is using PGP, select the contact and use /info. If (s)he is, it should display something like

    PGP key id: E2C4C9A1601A5A4
    Last PGP signature: unknown

The signature is "unknown", because we don't have the contact's key. We could get it with gpg, for example.

gpg --recv-keys E2C4C9A1601A5A4

Then, wait for the next presence message.

If the contact has your key and you have their key, you should have bidirectional encrypted messages.

Per-contact settings

You can provide a PGP key to be used for a given Jabber user or disable PGP on a per-account basis, using the command /pgp. If you provide a KeyId for a contact, it will be compared to the key the contact uses to sign their presence/messages and it will be used for all outgoing encrypted messages (by default, mcabber will use the contact signature's key).

/pgp disable foo@bar.org
/pgp setkey bar@foo.net C9940A9BB0B92210

The command /pgp can be used in the configuration file (without the leading /).

Retrieved from "http://wiki.mcabber.com/index.php/OpenPGP"

This page has been accessed 1,094 times. This page was last modified 20:05, 16 December 2006.


Find
Browse
Main Page
Community portal
Current events
Recent changes
Random page
Help
Donations
Edit
Edit this page
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
Bug reports
More...