Project

General

Profile

Actions

Bug #1538

closed

openvpn-client-export.inc -- issue with ca.crt lookup

Added by Epi Salamanca almost 13 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
05/18/2011
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
2.0
Affected Plus Version:
Affected Architecture:

Description

Hi,
I'm currently running pfSense 2.0 RC1.
I've just installed OpenVpn-client-export package. Whenever
that I try to export openvpn configuration for a given user.
An error is generated because 'server_ca' cannot be found.
I've check the source code for openvpn-client-export.inc,
and currently the code is as follows:

// lookup server certificate info
$server_cert = lookup_cert($settings['certref']);
$server_ca = lookup_ca($server_cert['caref']);
if (!$server_cert || !$server_ca) {
$input_errors[] = "Could not locate certificate.";
return false;
}

I've print out $server_cert array and there is no key named 'caref',
but 'caref' key exists on $settings array.
So after changing the code :
// lookup server certificate info
$server_cert = lookup_cert($settings['certref']);
//bug --> $server_ca = lookup_ca($server_cert['caref']);
//fix -->
$server_ca = lookup_ca($settings['caref']);
//fix <--
if (!$server_cert || !$server_ca) {
$input_errors[] = "Could not locate certificate.";
return false;
}

This error occurs at:

function openvpn_client_export_config(...);
function openvpn_client_export_installer(...);
function viscosity_openvpn_client_config_exporter(...)

Actions

Also available in: Atom PDF