Roundcube/Plugin/enigma: Unterschied zwischen den Versionen
K Textersetzung - „GPG“ durch „GnuPG“ |
K Textersetzung - „http://“ durch „https://“ |
||
Zeile 21: | Zeile 21: | ||
The enigma plugin requires that the Crypt_GnuPG library is installed exactly in your <code>/var/www/roundcube/plugins/enigma/lib/Crypt_GnuPG</code> dir. Considering that <code>roundcube</code> resets the default <code>include_path php</code> variable (which is set by <code>php.ini</code> to <code>/path/to/php/lib</code>), if you choose to install it using <code>pear</code> you will get a "Server error". So let's manually download and install the package in the proper folder | The enigma plugin requires that the Crypt_GnuPG library is installed exactly in your <code>/var/www/roundcube/plugins/enigma/lib/Crypt_GnuPG</code> dir. Considering that <code>roundcube</code> resets the default <code>include_path php</code> variable (which is set by <code>php.ini</code> to <code>/path/to/php/lib</code>), if you choose to install it using <code>pear</code> you will get a "Server error". So let's manually download and install the package in the proper folder | ||
cd /var/www/roundcube/plugins/enigma/lib | cd /var/www/roundcube/plugins/enigma/lib | ||
wget <nowiki> | wget <nowiki>https://download.pear.php.net/package/Crypt_GnuPG-1.6.2.tgz</nowiki> | ||
tar xzf Crypt_GnuPG-1.6.2.tgz | tar xzf Crypt_GnuPG-1.6.2.tgz | ||
ln -s Crypt_GnuPG-1.6.2/Crypt | ln -s Crypt_GnuPG-1.6.2/Crypt |
Aktuelle Version vom 7. April 2025, 14:47 Uhr
Enigma
- More info here
- Requires:
gpg
(gnupg
andlibgpg-error
onSlackware
systems) - Shipped by
Roundcube
- Plugin name: enigma
Update: the enigma plugin included in 1.3.1 version seems to be not compatible with the old version of Crypt_GnuPG
This plugin adds support for viewing and sending of signed and encrypted messages in PGP (RFC 2440) and PGP/MIME (RFC 3156) format. The plugin uses gpg binary on the server and stores all keys (including private keys of the users) on the server. Encryption/decryption is done server-side. So, this plugin is for users who trust the server.Create a config file
cd /var/www/roundcube/plugins/enigma cp -p config.inc.php.dist config.inc.php
The keys are stored by the server in the enigma/home
dir. Let's move that dir to a folder that is not accessible from the web and assign to apache write permissions
mkdir -p /var/www/roundcube-enigma-home chown -R root:apache /var/www/roundcube-enigma-home chmod -R g+w /var/www/roundcube-enigma-home
Now modify your apache configuration to grant proper permissions to apache in the newly created dir:
Require all granted
Don't forget to restart your web server, for example:
apachectl restart
Now modify the enigma config file to point to the new home dir:
$config['enigma_pgp_homedir'] = '/var/www/roundcube-enigma-home';
The enigma plugin requires that the Crypt_GnuPG library is installed exactly in your /var/www/roundcube/plugins/enigma/lib/Crypt_GnuPG
dir. Considering that roundcube
resets the default include_path php
variable (which is set by php.ini
to /path/to/php/lib
), if you choose to install it using pear
you will get a "Server error". So let's manually download and install the package in the proper folder
cd /var/www/roundcube/plugins/enigma/lib wget https://download.pear.php.net/package/Crypt_GnuPG-1.6.2.tgz tar xzf Crypt_GnuPG-1.6.2.tgz ln -s Crypt_GnuPG-1.6.2/Crypt chown -R root:apache Crypt*
The set up of the certificates is easy. Refer to this blog page for more info.