setName('ocm:keys:activate') ->setDescription('promote the staged JWKS key to active; the previous active key moves to retiring'); } #[\Override] protected function execute(InputInterface $input, OutputInterface $output): int { try { $this->signatoryManager->activateStagedJwksKey(); } catch (\RuntimeException $e) { $output->writeln('' . $e->getMessage() . ''); return self::FAILURE; } $output->writeln('Staged key promoted to active.'); $output->writeln('Run occ ocm:keys:retire once any in-flight signatures using the previous key have been verified.'); return self::SUCCESS; } }