Project

General

Profile

Actions

Bug #15133

closed

PHP error with OpenVPN server certificate verification if the certificate has multiple ``CN`` attributes

Added by Clément PAPPALARDO 11 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
OpenVPN
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
24.11
Release Notes:
Default
Affected Version:
Affected Architecture:

Description

PHP ERROR: Type: 1, File: /etc/inc/openvpn.inc, Line: 1197, Message: 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(1660): openvpn_reconfigure('server', Array)
#2 /etc/inc/openvpn.inc(1867): openvpn_restart('server', Array)
#3 /usr/local/www/vpn_openvpn_server.php(892): openvpn_resync('server', Array)
#4 {main}
  thrown

after looking at code, this seems to be related to certificate depth. I disabled check (do not check), and no more errors.


Related issues

Has duplicate Regression #13988: PHP error with OpenVPN if the server certificate subject has duplicate componentsDuplicate

Actions
Actions

Also available in: Atom PDF