Fix x509 OpenSSL format when multiple OU's are present

When formatting DN in OpenSSL format Multiple Organizational Unit Names (OU) in certificates throw `PHP Notice:  Undefined index: id-at-organizationalUnitName` and returned array only contains the last OU.
This commit is contained in:
Ulugbek Miniyarov 2019-03-08 11:33:02 +03:00 committed by terrafrost
parent 84e2329249
commit 7c894b2b99

View File

@ -2977,7 +2977,7 @@ class File_X509
}
$output.= $desc . '=' . $value;
$result[$desc] = isset($result[$desc]) ?
array_merge((array) $dn[$prop], array($value)) :
array_merge((array) $result[$desc], array($value)) :
$value;
$start = false;
}