added input-file option for automatic cli-installation

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-07-08 16:52:22 +02:00
parent 7c812df4e0
commit 430aefe0f7
5 changed files with 165 additions and 40 deletions

View File

@@ -258,6 +258,6 @@ class Crypt
$x509 = openssl_csr_sign($csr, null, $privkey, 365, array('digest_alg' => 'sha384'));
// export to files
openssl_x509_export_to_file($x509, Settings::Get('system.ssl_cert_file'));
openssl_pkey_export_to_file($private_key, Settings::Get('system.ssl_key_file'));
openssl_pkey_export_to_file($privkey, Settings::Get('system.ssl_key_file'));
}
}