mirror of https://github.com/MISP/MISP
Crypt_GPG
small comment about debug and small note in readme about file rights.pull/63/head
parent
0402c291a2
commit
9790c4b60f
|
@ -786,7 +786,7 @@ class EventsController extends AppController {
|
|||
|
||||
// sign the body
|
||||
require_once 'Crypt/GPG.php';
|
||||
$gpg = new Crypt_GPG(array('homedir' => Configure::read('GnuPG.homedir')));
|
||||
$gpg = new Crypt_GPG(array('homedir' => Configure::read('GnuPG.homedir'))); // , 'debug' => true
|
||||
$gpg->addSignKey(Configure::read('GnuPG.email'), Configure::read('GnuPG.password'));
|
||||
$bodySigned = $gpg->sign($body, Crypt_GPG::SIGN_MODE_CLEAR);
|
||||
|
||||
|
|
|
@ -47,6 +47,10 @@ cd /var/www/cydefsig/app/
|
|||
chmod -R g+w tmp
|
||||
chmod -R g+w files
|
||||
|
||||
# If installed Crypt_GPG and created it's homedir:
|
||||
chown -R www-data:www-data /var/www/cydefsig/.gnupg
|
||||
chmod -R u+rwx,go-rwxs /var/www/cydefsig/.gnupg
|
||||
|
||||
# Import the empty MySQL database in /var/www/cydefsig/app/MYSQL.txt using phpmyadmin or mysql>.
|
||||
|
||||
# Now configure your apache server with the DocumentRoot /var/www/cydefsig/app/webroot/
|
||||
|
|
Loading…
Reference in New Issue