mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 10:04:41 +00:00
OpenVPN, extract ca chain for https://github.com/opnsense/core/issues/1487
This commit is contained in:
parent
2006837d18
commit
67f4948670
@ -892,8 +892,8 @@ function openvpn_reconfigure($mode, $settings, $device_only = false)
|
||||
case 'server_tls':
|
||||
case 'server_tls_user':
|
||||
case 'server_user':
|
||||
$ca = lookup_ca($settings['caref']);
|
||||
openvpn_add_keyfile($ca['crt'], $conf, $mode_id, "ca");
|
||||
$ca = base64_encode(ca_chain($settings));
|
||||
openvpn_add_keyfile($ca, $conf, $mode_id, "ca");
|
||||
|
||||
if (!empty($settings['certref'])) {
|
||||
$cert = lookup_cert($settings['certref']);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user