Commit 5dba1153 authored by Franco Fichtner's avatar Franco Fichtner

wizard: fix cert create for openvpn

(cherry picked from commit 0bba9c63)
(cherry picked from commit fad32682)
parent 1f4fab9d
......@@ -532,11 +532,14 @@ function step12_submitphpaction() {
'localityName' => $pconfig['step9']['city'],
'organizationName' => $pconfig['step9']['organization'],
'emailAddress' => $pconfig['step9']['email'],
'commonName' => $pconfig['step9']['certname']);
'commonName' => $pconfig['step9']['certname']
);
cert_create($cert, $ca['refid'], $pconfig['step9']['keylength'], $pconfig['step9']['lifetime'], $dn, 'server', "sha256");
if (!is_array($config['cert']))
cert_create($cert, $ca['refid'], $pconfig['step9']['keylength'], $pconfig['step9']['lifetime'], $dn, 'sha256', 'server_cert');
if (!is_array($config['cert'])) {
$config['cert'] = array();
}
$config['cert'][] = $cert;
} else if (!isset($pconfig['step9']['uselist']) && empty($pconfig['step9']['authcertname'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment