Skip to content

Commit

Permalink
OpenVPN, extract ca chain for #1487
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Feb 13, 2019
1 parent 2006837 commit 67f4948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/etc/inc/plugins.inc.d/openvpn.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 67f4948

Please sign in to comment.