code: function cliGenerateCsr (configDir, commonOrCsrFileName, command) {
    cliPki.processPrivateKeyPassphrase(command,
      function (error) {
        if (error) {
          provisionUtil.invokeCallback(error, command.doneCallback,
            command.verbosity)
        } else {
          pki.generatePrivateKeyAndCsr(configDir, commonOrCsrFileName, command)
        }
      }
    )
  }
docs: Action function invoked for the generatecsr subcommand.
  @param {String} configDir - Directory in which to store the private key
  and CSR file.
  @param {String} commonOrCsrFileName - A string representing either
  a common name (CN) to add into the generated file or the path to the
  location of an existing CSR file. The parameter is interpreted as a path
  to an existing CSR file if a property named certRequestFile exists on the
  command object and has a truthy value. If the parameter represents a path
  to an existing CSR file, this function does not generate a new CSR file.
  @param {Command} command - The Commander command to append options onto.