setName('ocm:keys:retire') ->setDescription('delete the retiring JWKS key; signatures that referenced its kid can no longer be verified'); } #[\Override] protected function execute(InputInterface $input, OutputInterface $output): int { try { $this->signatoryManager->retireJwksKey(); } catch (\RuntimeException $e) { $output->writeln('' . $e->getMessage() . ''); return self::FAILURE; } $output->writeln('Retiring key deleted.'); return self::SUCCESS; } }