Skip to content

Commit 00c5a21

Browse files
author
Marius Burkard
committed
- fixed missing CSR in interface on creating self-signed cert
1 parent 1fa53e9 commit 00c5a21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,10 +353,10 @@ function ssl($event_name, $data) {
353353
if(is_file($ssl_cnf_file) && !is_link($ssl_cnf_file)) {
354354
$openssl_cmd = 'openssl req -nodes -newkey rsa:4096 -x509 -days ? -keyout ? -out ? -config ?';
355355
$app->system->exec_safe($openssl_cmd, $ssl_days, $openssl_cmd_key_file, $openssl_cmd_crt_file, $config_file);
356+
$app->system->exec_safe("openssl req -new -sha256 -key ? -out ? -days ? -config ?", $openssl_cmd_key_file, $openssl_cmd_csr_file, $ssl_days, $config_file);
356357

357358
if(file_exists($web_config['CA_path'].'/openssl.cnf'))
358359
{
359-
$app->system->exec_safe("openssl req -new -sha256 -key ? -out ? -days ? -config ?", $openssl_cmd_key_file, $openssl_cmd_csr_file, $ssl_days, $config_file);
360360
$app->system->exec_safe("openssl ca -batch -out ? -config ? -passin pass:? -in ? -extfile ?", $openssl_cmd_crt_file, $web_config['CA_path']."/openssl.cnf", $web_config['CA_pass'], $openssl_cmd_csr_file, $ssl_ext_file);
361361
$app->log("Creating CA-signed SSL Cert for: $domain", LOGLEVEL_DEBUG);
362362
if(filesize($crt_file) == 0 || !file_exists($crt_file)) {

0 commit comments

Comments
 (0)