summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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