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