summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2015-12-07 10:28:01 -0500
committerjim-p <jimp@pfsense.org>2015-12-07 10:28:37 -0500
commitb2f154ac191b8fb70ba187d5edc9428db36091b1 (patch)
treeb094f56a32559fd5011223c6c61605183e6c9224 /src
parentd66ee1cb11dbdff5d578ffef6038a52d391c4f5f (diff)
downloadpfsense-b2f154ac191b8fb70ba187d5edc9428db36091b1.zip
pfsense-b2f154ac191b8fb70ba187d5edc9428db36091b1.tar.gz
Fix this test. Ticket #5602
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/vpn_openvpn_server.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/usr/local/www/vpn_openvpn_server.php b/src/usr/local/www/vpn_openvpn_server.php
index 8861cb7..0bbafb3 100644
--- a/src/usr/local/www/vpn_openvpn_server.php
+++ b/src/usr/local/www/vpn_openvpn_server.php
@@ -750,7 +750,8 @@ if($act=="new" || $act=="edit") :
$certhelp = "";
if (count($a_cert)) {
if (!empty(trim($pconfig['certref']))) {
- $purpose = cert_get_purpose($a_cert[$pconfig['certref']]['crt'], true);
+ $thiscert = lookup_cert($pconfig['certref']);
+ $purpose = cert_get_purpose($thiscert['crt'], true);
if ($purpose['server'] != "Yes") {
$certhelp = gettext("Warning: The previously saved server was not created as an SSL Server certificate and may not work properly.");
}
OpenPOWER on IntegriCloud