Roundcube/Plugin/enigma: Unterschied zwischen den Versionen

Aus Foxwiki
Keine Bearbeitungszusammenfassung
K Textersetzung - „GPG“ durch „GnuPG“
 
Zeile 6: Zeile 6:
* Plugin name: ''enigma''
* Plugin name: ''enigma''


Update: the enigma plugin included in 1.3.1 version seems to be not compatible with the old version of <code>Crypt_GPG</code>This plugin adds support for viewing and sending of signed and encrypted messages in PGP (<nowiki>RFC 2440</nowiki>) and PGP/MIME (<nowiki>RFC 3156</nowiki>) 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
Update: the enigma plugin included in 1.3.1 version seems to be not compatible with the old version of <code>Crypt_GnuPG</code>This plugin adds support for viewing and sending of signed and encrypted messages in PGP (<nowiki>RFC 2440</nowiki>) and PGP/MIME (<nowiki>RFC 3156</nowiki>) 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
  cd /var/www/roundcube/plugins/enigma
  cp -p config.inc.php.dist config.inc.php
  cp -p config.inc.php.dist config.inc.php
Zeile 19: Zeile 19:
Now modify the enigma config file to point to the new home dir:
Now modify the enigma config file to point to the new home dir:
  $config['enigma_pgp_homedir'] = '/var/www/roundcube-enigma-home';
  $config['enigma_pgp_homedir'] = '/var/www/roundcube-enigma-home';
The enigma plugin requires that the Crypt_GPG library is installed exactly in your <code>/var/www/roundcube/plugins/enigma/lib/Crypt_GPG</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>http://download.pear.php.net/package/Crypt_GPG-1.6.2.tgz</nowiki>
  wget <nowiki>http://download.pear.php.net/package/Crypt_GnuPG-1.6.2.tgz</nowiki>
  tar xzf Crypt_GPG-1.6.2.tgz
  tar xzf Crypt_GnuPG-1.6.2.tgz
  ln -s Crypt_GPG-1.6.2/Crypt
  ln -s Crypt_GnuPG-1.6.2/Crypt
  chown -R root:apache Crypt*
  chown -R root:apache Crypt*
The set up of the certificates is easy. Refer to this blog page for more info.
The set up of the certificates is easy. Refer to this blog page for more info.


[[Kategorie:Roundcube/Plugin]]
[[Kategorie:Roundcube/Plugin]]

Aktuelle Version vom 18. Februar 2024, 12:53 Uhr

Enigma

  • More info here
  • Requires: gpg (gnupg and libgpg-error on Slackware 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_GnuPGThis 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 http://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.