protected function generateKey($processArgs)
    {
        $process = new Process(sprintf('openssl %s', $processArgs));
        $process->setTimeout(3600);

        $process->run(function ($type, $buffer) {
            $this->io->write($buffer);
        });

        if (!$process->isSuccessful()) {
            throw new ProcessFailedException($process);
        }

        $process->getExitCode();
    }
protected function generateKey($processArgs)
    {
        $process = new Process(sprintf('openssl %s', $processArgs));
        $process->setTimeout(3600);

        $process->run(function ($type, $buffer) {
            $this->io->write($buffer);
        });

        if (!$process->isSuccessful()) {
            throw new ProcessFailedException($process);
        }

        $process->getExitCode();
    }
protected function generateKey ( $ processArgs ) { $ process = new Process ( sprintf ( 'openssl %s' , $ processArgs ) ) ; $ process -> setTimeout ( 3600 ) ; $ process -> run ( function ( $ type , $ buffer ) { $ this -> io -> write ( $ buffer ) ; } ) ; if ( ! $ process -> isSuccessful ( ) ) { throw new ProcessFailedException ( $ process ) ; } $ process -> getExitCode ( ) ; }
Generate a RSA key.

@param string          $processArgs
@param Outputinterface $output

@throws ProcessFailedException
Generate a RSA key .