#18613 [Opn->Fbk]: Multiple OU in x509 certificate problem
| From: | jtate@php.net | Date: | Mon, 29 Jul 2002 15:40:54 +0000 |
| Subject: | #18613 [Opn->Fbk]: Multiple OU in x509 certificate problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-15504@lists.php.net to get a copy of this message | ||
ID: 18613
Updated by: jtate@php.net
Reported By: agoralski@certum.pl
-Status: Open
+Status: Feedback
Bug Type: OpenSSL related
Operating System: Linux 2.4.18-grsec
PHP Version: 4.2.2
New Comment:
Please submit the diff -u output to php-dev@php.net.
Previous Comments:
------------------------------------------------------------------------
[2002-07-28 10:37:10] agoralski@certum.pl
When the certificate has more that one OU (organizationalUnit), the
openssl_x509_parse function will return only the last one.
Proposal:
The openssl_x509_parse should return:
[subject][OU][0]='First OU'
[subject][OU][1]='Second OU'
When there is only one OU field the openssl_x509_parse should return:
[subject][OU]='First and only OU'
It's up to the user to check if [subject][OU] is an array IMO.
We can submit a patch :)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18613&edit=1