Merge pull request #23693 from nextcloud/bugfix/noid/import-cert-clarify
Clarify import cert command
This commit is contained in:
commit
0f52e14a92
|
@ -42,11 +42,11 @@ class ImportCertificate extends Base {
|
||||||
protected function configure() {
|
protected function configure() {
|
||||||
$this
|
$this
|
||||||
->setName('security:certificates:import')
|
->setName('security:certificates:import')
|
||||||
->setDescription('import trusted certificate')
|
->setDescription('import trusted certificate in PEM format')
|
||||||
->addArgument(
|
->addArgument(
|
||||||
'path',
|
'path',
|
||||||
InputArgument::REQUIRED,
|
InputArgument::REQUIRED,
|
||||||
'path to the certificate to import'
|
'path to the PEM certificate to import'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ class ImportCertificate extends Base {
|
||||||
$path = $input->getArgument('path');
|
$path = $input->getArgument('path');
|
||||||
|
|
||||||
if (!file_exists($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;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue