setName('security:certificates:export') ->setDescription('export the certificate bundle'); } protected function execute(InputInterface $input, OutputInterface $output): int { $bundlePath = $this->certificateManager->getAbsoluteBundlePath(); $bundle = file_get_contents($bundlePath); $output->writeln($bundle); return 0; } }