php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52765 openssl_csr_get_subject returns a single element array when subjectName starts
Submitted: 2010-09-02 10:23 UTC Modified: 2010-09-02 14:13 UTC
From: Willy dot Weisz at univie dot ac dot at Assigned:
Status: Not a bug Package: OpenSSL related
PHP Version: 5.3.3 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Willy dot Weisz at univie dot ac dot at
New email:
PHP Version: OS:

 

 [2010-09-02 10:23 UTC] 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
)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-02 14:01 UTC] Willy dot Weisz at univie dot ac dot at
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.
 [2010-09-02 14:13 UTC] pajoye@php.net
-Status: Open +Status: Bogus
 [2010-09-02 14:13 UTC] pajoye@php.net
.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 07:01:32 2024 UTC