diff options
Diffstat (limited to 'helpers/peertubeCrypto.js')
-rw-r--r-- | helpers/peertubeCrypto.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/helpers/peertubeCrypto.js b/helpers/peertubeCrypto.js index 36271dba9..9031f6ae5 100644 --- a/helpers/peertubeCrypto.js +++ b/helpers/peertubeCrypto.js | |||
@@ -5,11 +5,12 @@ | |||
5 | var crypto = require('crypto') | 5 | var crypto = require('crypto') |
6 | var fs = require('fs') | 6 | var fs = require('fs') |
7 | var openssl = require('openssl-wrapper') | 7 | var openssl = require('openssl-wrapper') |
8 | var path = require('path') | ||
8 | var ursa = require('ursa') | 9 | var ursa = require('ursa') |
9 | 10 | ||
10 | var logger = require('./logger') | 11 | var logger = require('./logger') |
11 | 12 | ||
12 | var certDir = __dirname + '/../' + config.get('storage.certs') | 13 | var certDir = path.join(__dirname, '..', config.get('storage.certs')) |
13 | var algorithm = 'aes-256-ctr' | 14 | var algorithm = 'aes-256-ctr' |
14 | 15 | ||
15 | var peertubeCrypto = { | 16 | var peertubeCrypto = { |