2016-04-04 18:08:40 +02:00
|
|
|
#SMIME patch
|
|
|
|
|
|
|
|
## Create SMIME directory
|
|
|
|
|
|
|
|
mkdir /var/www/MISP/.smime
|
|
|
|
|
|
|
|
## Copy your public x509 certificate (for signing) in PEM format
|
|
|
|
|
|
|
|
cp email@address.com.pem /var/www/MISP/.smime/email@address.com.pem
|
|
|
|
|
|
|
|
## Copy your private key for signing email
|
|
|
|
|
|
|
|
cp email@address.com.key /var/www/MISP/.smime/email@address.com.key
|
|
|
|
|
|
|
|
### Set permissions
|
|
|
|
|
|
|
|
chown www-data:www-data /var/www/MISP/.smime
|
|
|
|
chmod 500 /var/www/MISP/.smime
|
|
|
|
chmod 440 /var/www/MISP/.smime/*
|
|
|
|
|
|
|
|
## Export the public certificate (for Encipherment) to the webroot
|
|
|
|
|
|
|
|
cp public_certificate.pem /var/www/MISP/app/webroot/public_certificate.pem
|
|
|
|
|
|
|
|
Due to this action, the MISP users will be able to download your public certificate (for Encipherment) by clicking on the footer
|
|
|
|
|
|
|
|
### Set permissions
|
|
|
|
|
|
|
|
chown www-data:www-data /var/www/MISP/app/webroot/public_certificate.pem
|
|
|
|
chmod 440 /var/www/MISP/app/webroot/public_certificate.pem
|
|
|
|
|
2016-04-26 17:55:16 +02:00
|
|
|
## Configure the section "SMIME" in the server settings (Administration -> Server settings -> Encryption tab)
|