protected function generatePrivateKey($path, $passphrase)
    {
        if ($passphrase) {
            $processArgs = sprintf('genrsa -out %s/private.pem -aes256 -passout pass:%s 4096', $path, $passphrase);
        } else {
            $processArgs = sprintf('genrsa -out %s/private.pem 4096', $path);
        }

        $this->generateKey($processArgs);
    }
protected function generatePrivateKey($path, $passphrase)
    {
        if ($passphrase) {
            $processArgs = sprintf('genrsa -out %s/private.pem -aes256 -passout pass:%s 4096', $path, $passphrase);
        } else {
            $processArgs = sprintf('genrsa -out %s/private.pem 4096', $path);
        }

        $this->generateKey($processArgs);
    }
protected function generatePrivateKey ( $ path , $ passphrase ) { if ( $ passphrase ) { $ processArgs = sprintf ( 'genrsa -out %s/private.pem -aes256 -passout pass:%s 4096' , $ path , $ passphrase ) ; } else { $ processArgs = sprintf ( 'genrsa -out %s/private.pem 4096' , $ path ) ; } $ this -> generateKey ( $ processArgs ) ; }
Generate a RSA private key.

@param string          $path
@param string          $passphrase
@param OutputInterface $output

@throws ProcessFailedException
Generate a RSA private key .