Bug #52765 [Opn]: openssl_csr_get_subject returns a single element array when subjectName starts

From: Date: Thu, 02 Sep 2010 12:01:40 +0000
Subject: Bug #52765 [Opn]: openssl_csr_get_subject returns a single element array when subjectName starts
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-154050@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52765&edit=1

 ID:                 52765
 User updated by:    Willy dot Weisz at univie dot ac dot at
 Reported by:        Willy dot Weisz at univie dot ac dot at
 Summary:            openssl_csr_get_subject returns a single element
                     array when subjectName starts
 Status:             Open
 Type:               Bug
 Package:            OpenSSL related
 Operating System:   Linux
 PHP Version:        5.3.3
 Block user comment: N

 New Comment:

Doing further tests I discovered that the CSR is ill-formed as can be
seen (but I overlooked it) from the content of the single element array
which I pasted from an array listing output. 
openssl_csr_get_subject applied to a correct CSR gives the expected
result.

I'm sorry for the premature bug submission. Please clause this bug
report.


Previous Comments:
------------------------------------------------------------------------
[2010-09-02 10:23:42] Willy dot Weisz at univie dot ac dot at

Description:
------------
openssl_csr_get_subject returns a single element array when the
subjectName starts with DC, e.g.:
for subjectName = /DC=at/DC=austriangridca/O=UniVie/OU=VCPC/CN=Willy
Weisz
openssl_csr_get_subject returns an array
Array
(
  [DC] => at/DC=austriangridca/O=UniVie/OU=VCPCWilly Weisz
)
instead of
Array
(
  [DC] => at
  [DC] => austriangridca
  [O]  => UniVie
  [OU] => VCPC
  [CN] => Willy Weisz
)



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52765&edit=1


Thread (3 messages)

« previous php.bugs (#154050) next »