Neos\Flow\Command\SecurityCommandController::importPublicKeyCommand PHP Метод

importPublicKeyCommand() публичный Метод

Read a PEM formatted public key from stdin and import it into the RSAWalletService.
public importPublicKeyCommand ( ) : void
Результат void
    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);
    }