Actions
Regression #13988
closedPHP error with OpenVPN if the server certificate subject has duplicate components
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
OpenVPN
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
2.7.0
Affected Architecture:
Description
Saving an OpenVPN Server configuration results in the following error:
PHP Fatal error: Uncaught TypeError: urlencode(): Argument #1 ($string) must be of type string, array given in /etc/inc/openvpn.inc:1197 Stack trace: #0 /etc/inc/openvpn.inc(1197): urlencode(Array) #1 /etc/inc/openvpn.inc(1658): openvpn_reconfigure('server', Array) #2 /etc/inc/openvpn.inc(1865): openvpn_restart('server', Array) #3 /etc/inc/openvpn.inc(1907): openvpn_resync('server', Array) #4 /etc/rc.bootup(270): openvpn_resync_all() #5 {main} thrown in /etc/inc/openvpn.inc on line 1197
config.xml
<cert> <refid>5c116b60e0bdf</refid> <descr><![CDATA[webConfigurator default (5c116b60e0bdf)]]></descr> <type>server</type> <crt>xxxxx</crt> <prv>xxxxx</prv> </cert> <cert> <refid>60566761859b5</refid> <descr><![CDATA[vpn.domain.com]]></descr> <crt>xxxxx==</crt> <prv>xxxxx</prv> <caref>5cb13825d3349</caref> </cert> <cert> <refid>62f793e6736f6</refid> <descr><![CDATA[*.domain.com]]></descr> <crt>xxxxx</crt> <prv>xxxxx</prv> <caref>5cb13825d3349</caref> </cert>
Related issues
Actions