refactor(database): require PEM key file for SSL certificate regeneration

This commit is contained in:
Andras Bacsai
2025-03-27 10:02:25 +01:00
parent 1857a54d92
commit 3be6be4c1b
7 changed files with 7 additions and 0 deletions

View File

@@ -228,6 +228,7 @@ class General extends Component
caKey: $caCert->ssl_private_key, caKey: $caCert->ssl_private_key,
configurationDir: $existingCert->configuration_dir, configurationDir: $existingCert->configuration_dir,
mountPath: $existingCert->mount_path, mountPath: $existingCert->mount_path,
isPemKeyFileRequired: true,
); );
$this->dispatch('success', 'SSL certificates regenerated. Restart database to apply changes.'); $this->dispatch('success', 'SSL certificates regenerated. Restart database to apply changes.');

View File

@@ -234,6 +234,7 @@ class General extends Component
caKey: $caCert->ssl_private_key, caKey: $caCert->ssl_private_key,
configurationDir: $existingCert->configuration_dir, configurationDir: $existingCert->configuration_dir,
mountPath: $existingCert->mount_path, mountPath: $existingCert->mount_path,
isPemKeyFileRequired: true,
); );
$this->dispatch('success', 'SSL certificates regenerated. Restart database to apply changes.'); $this->dispatch('success', 'SSL certificates regenerated. Restart database to apply changes.');

View File

@@ -184,6 +184,7 @@ class General extends Component
caKey: $caCert->ssl_private_key, caKey: $caCert->ssl_private_key,
configurationDir: $existingCert->configuration_dir, configurationDir: $existingCert->configuration_dir,
mountPath: $existingCert->mount_path, mountPath: $existingCert->mount_path,
isPemKeyFileRequired: true,
); );
$this->dispatch('success', 'SSL certificates have been regenerated. Please restart the database for changes to take effect.'); $this->dispatch('success', 'SSL certificates have been regenerated. Please restart the database for changes to take effect.');

View File

@@ -192,6 +192,7 @@ class General extends Component
caKey: $caCert->ssl_private_key, caKey: $caCert->ssl_private_key,
configurationDir: $existingCert->configuration_dir, configurationDir: $existingCert->configuration_dir,
mountPath: $existingCert->mount_path, mountPath: $existingCert->mount_path,
isPemKeyFileRequired: true,
); );
$this->dispatch('success', 'SSL certificates have been regenerated. Please restart the database for changes to take effect.'); $this->dispatch('success', 'SSL certificates have been regenerated. Please restart the database for changes to take effect.');

View File

@@ -191,6 +191,7 @@ class General extends Component
caKey: $caCert->ssl_private_key, caKey: $caCert->ssl_private_key,
configurationDir: $existingCert->configuration_dir, configurationDir: $existingCert->configuration_dir,
mountPath: $existingCert->mount_path, mountPath: $existingCert->mount_path,
isPemKeyFileRequired: true,
); );
$this->dispatch('success', 'SSL certificates have been regenerated. Please restart the database for changes to take effect.'); $this->dispatch('success', 'SSL certificates have been regenerated. Please restart the database for changes to take effect.');

View File

@@ -148,6 +148,7 @@ class General extends Component
caKey: $caCert->ssl_private_key, caKey: $caCert->ssl_private_key,
configurationDir: $existingCert->configuration_dir, configurationDir: $existingCert->configuration_dir,
mountPath: $existingCert->mount_path, mountPath: $existingCert->mount_path,
isPemKeyFileRequired: true,
); );
$this->dispatch('success', 'SSL certificates have been regenerated. Please restart the database for changes to take effect.'); $this->dispatch('success', 'SSL certificates have been regenerated. Please restart the database for changes to take effect.');

View File

@@ -188,6 +188,7 @@ class General extends Component
caKey: $caCert->ssl_private_key, caKey: $caCert->ssl_private_key,
configurationDir: $existingCert->configuration_dir, configurationDir: $existingCert->configuration_dir,
mountPath: $existingCert->mount_path, mountPath: $existingCert->mount_path,
isPemKeyFileRequired: true,
); );
$this->dispatch('success', 'SSL certificates regenerated. Restart database to apply changes.'); $this->dispatch('success', 'SSL certificates regenerated. Restart database to apply changes.');