You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/Command/Maintenance/Install.php
+32Lines changed: 32 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,19 @@
27
27
usefunctionget_class;
28
28
29
29
class Install extends Command {
30
+
/**
31
+
* SSL/TLS command line options and the installer options they provide. The database
32
+
* setup translates those, see \OC\Setup\AbstractDatabase::ENCRYPTION_OPTIONS.
33
+
* `--database-ssl-no-verify` is handled separately as it takes no value.
34
+
*/
35
+
privateconstarraySSL_OPTIONS = [
36
+
'database-ssl-mode' => 'dbsslmode',
37
+
'database-ssl-ca' => 'dbsslca',
38
+
'database-ssl-cert' => 'dbsslcert',
39
+
'database-ssl-key' => 'dbsslkey',
40
+
'database-ssl-crl' => 'dbsslcrl',
41
+
];
42
+
30
43
publicfunction__construct(
31
44
privateSystemConfig$config,
32
45
privateIniGetWrapper$iniGetWrapper,
@@ -46,6 +59,12 @@ protected function configure(): void {
46
59
->addOption('database-user', null, InputOption::VALUE_REQUIRED, 'Login to connect to the database')
47
60
->addOption('database-pass', null, InputOption::VALUE_OPTIONAL, 'Password of the database user', null)
48
61
->addOption('database-table-space', null, InputOption::VALUE_OPTIONAL, 'Table space of the database (oci only)', null)
62
+
->addOption('database-ssl-mode', null, InputOption::VALUE_REQUIRED, 'Encryption mode for the database connection, e.g. "require" or "verify-full" (pgsql only)')
63
+
->addOption('database-ssl-ca', null, InputOption::VALUE_REQUIRED, 'Path to the CA certificate the database server is verified against (mysql and pgsql only)')
64
+
->addOption('database-ssl-cert', null, InputOption::VALUE_REQUIRED, 'Path to the client certificate used to authenticate against the database (mysql and pgsql only)')
65
+
->addOption('database-ssl-key', null, InputOption::VALUE_REQUIRED, 'Path to the private key of the client certificate (mysql and pgsql only)')
66
+
->addOption('database-ssl-crl', null, InputOption::VALUE_REQUIRED, 'Path to the certificate revocation list (pgsql only)')
67
+
->addOption('database-ssl-no-verify', null, InputOption::VALUE_NONE, 'Do not verify that the database server certificate matches the hostname used to connect (mysql only)')
49
68
->addOption('disable-admin-user', null, InputOption::VALUE_NONE, 'Disable the creation of an admin user')
50
69
->addOption('admin-user', null, InputOption::VALUE_REQUIRED, 'Login of the admin account', 'admin')
51
70
->addOption('admin-pass', null, InputOption::VALUE_REQUIRED, 'Password of the admin account')
@@ -184,6 +203,19 @@ protected function validateInput(InputInterface $input, OutputInterface $output,
0 commit comments