public function importPublicKeyCommand()
    {
        $keyData = '';
        // no file_get_contents here because it does not work on php://stdin
        $fp = fopen('php://stdin', 'rb');
        while (!feof($fp)) {
            $keyData .= fgets($fp, 4096);
        }
        fclose($fp);

        $fingerprint = $this->rsaWalletService->registerPublicKeyFromString($keyData);

        $this->outputLine('The public key has been successfully imported. Use the following fingerprint to refer to it in the RSAWalletService: ' . PHP_EOL . PHP_EOL . $fingerprint . PHP_EOL);
    }
public function importPublicKeyCommand()
    {
        $keyData = '';
        // no file_get_contents here because it does not work on php://stdin
        $fp = fopen('php://stdin', 'rb');
        while (!feof($fp)) {
            $keyData .= fgets($fp, 4096);
        }
        fclose($fp);

        $fingerprint = $this->rsaWalletService->registerPublicKeyFromString($keyData);

        $this->outputLine('The public key has been successfully imported. Use the following fingerprint to refer to it in the RSAWalletService: ' . PHP_EOL . PHP_EOL . $fingerprint . PHP_EOL);
    }
public function importPublicKeyCommand ( ) { $ keyData = '' ; // no file_get_contents here because it does not work on php://stdin $ fp = fopen ( 'php://stdin' , 'rb' ) ; while ( ! feof ( $ fp ) ) { $ keyData .= fgets ( $ fp , 4096 ) ; } fclose ( $ fp ) ; $ fingerprint = $ this -> rsaWalletService -> registerPublicKeyFromString ( $ keyData ) ; $ this -> outputLine ( 'The public key has been successfully imported. Use the following fingerprint to refer to it in the RSAWalletService: ' . PHP_EOL . PHP_EOL . $ fingerprint . PHP_EOL ) ; }
Import a public key

Read a PEM formatted public key from stdin and import it into the
RSAWalletService.

@return void
@see neos.flow:security:importprivatekey
Import a public key