From 9030a7e06e809eae0393baa73f59bcaea68a29d8 Mon Sep 17 00:00:00 2001 From: Max H <10329648+8ear@users.noreply.github.com> Date: Thu, 25 Oct 2018 12:53:10 +0200 Subject: [PATCH] Update CONFIG.SMIME.md Include code blocks. --- docs/CONFIG.SMIME.md | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/docs/CONFIG.SMIME.md b/docs/CONFIG.SMIME.md index 526ca8ab3..5a0fb3198 100644 --- a/docs/CONFIG.SMIME.md +++ b/docs/CONFIG.SMIME.md @@ -1,32 +1,33 @@ #SMIME patch ## Create SMIME directory - +```bash mkdir /var/www/MISP/.smime - +``` ## Copy your public x509 certificate (for signing) in PEM format - +```bash cp email@address.com.pem /var/www/MISP/.smime/email@address.com.pem - +``` ## Copy your private key for signing email - +```bash cp email@address.com.key /var/www/MISP/.smime/email@address.com.key - +``` ### Set permissions - +```bash 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 - +```bash 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 - +```bash chown www-data:www-data /var/www/MISP/app/webroot/public_certificate.pem chmod 440 /var/www/MISP/app/webroot/public_certificate.pem - +``` ## Configure the section "SMIME" in the server settings (Administration -> Server settings -> Encryption tab)