 clientLookup = (fingerprint, subjectCN, issuerCN) ->
   logger.debug "Looking up client linked to cert with fingerprint #{fingerprint} with subject #{subjectCN} and issuer #{issuerCN}"
   deferred = Q.defer()
-  
+  promises = []
+
   Client.findOne certFingerprint: fingerprint, (err, result) ->
     deferred.reject err if err
 

        logger.warn "tlsClientLookup.type config option does not contain a known value, defaulting to 'strict'. Available options are 'strict' and 'in-chain'."
      deferred.resolve null

  return deferred.promise

if process.env.NODE_ENV == "test"
  exports.clientLookup = clientLookup


    else
      return done(new Error 'Keystore does not exist')

    if mutualTLS
      exports.getTrustedClientCerts (err, certs) ->
        if err
