src/config/config-initialiser.js
function handleSSLProperties (config) {
  const sslFiles = ['sslKey', 'sslCert', 'sslDHParams']
  let key
  let resolvedFilePath
  let filePath
  for (let i = 0; i < sslFiles.length; i++) {
    key = sslFiles[i]
    filePath = config[key]
    if (!filePath) {
      continue
    }
    resolvedFilePath = fileUtils.lookupConfRequirePath(filePath)
    try {
      config[key] = fs.readFileSync(resolvedFilePath, 'utf8')
    } catch (e) {
      throw new Error(`The file path "${resolvedFilePath}" provided by "${key}" does not exist.`)
    }
  }
}
function handleSSLProperties (config) {
  const sslFiles = ['sslKey', 'sslCert', 'sslDHParams']
  let key
  let resolvedFilePath
  let filePath
  for (let i = 0; i < sslFiles.length; i++) {
    key = sslFiles[i]
    filePath = config[key]
    if (!filePath) {
      continue
    }
    resolvedFilePath = fileUtils.lookupConfRequirePath(filePath)
    try {
      config[key] = fs.readFileSync(resolvedFilePath, 'utf8')
    } catch (e) {
      throw new Error(`The file path "${resolvedFilePath}" provided by "${key}" does not exist.`)
    }
  }
}
function handleSSLProperties ( config ) { const sslFiles = [ 'sslKey' , 'sslCert' , 'sslDHParams' ] let key let resolvedFilePath let filePath for ( let i = 0 ; i < sslFiles . length ; i ++ ) { key = sslFiles [ i ] filePath = config [ key ] if ( ! filePath ) { continue } resolvedFilePath = fileUtils . lookupConfRequirePath ( filePath ) try { config [ key ] = fs . readFileSync ( resolvedFilePath , 'utf8' ) } catch ( e ) { throw new Error ( ` ${ resolvedFilePath } ${ key } ` ) } } }
Load the SSL files
CLI arguments will be considered.

@param {Object} config deepstream configuration object

@private
@returns {void}
Load the SSL files CLI arguments will be considered .