Add hint that the certificate to be imported must be in PEM format (CRT
does not parse).
Improved error message to mention that the given path must be accessible
by the web server user.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
protected function configure() {
$this
->setName('security:certificates:import')
- ->setDescription('import trusted certificate')
+ ->setDescription('import trusted certificate in PEM format')
->addArgument(
'path',
InputArgument::REQUIRED,
- 'path to the certificate to import'
+ 'path to the PEM certificate to import'
);
}
$path = $input->getArgument('path');
if (!file_exists($path)) {
- $output->writeln('<error>certificate not found</error>');
+ $output->writeln('<error>Certificate not found, please provide a path accessible by the web server user</error>');
return 1;
}