|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #29961 an openssl_csr_parse function would be handy
Submitted: 2004-09-03 03:55 UTC Modified: 2022-04-08 07:48 UTC
From: tjg at meitech dot com Assigned: ilutov (profile)
Status: Closed Package: OpenSSL related
PHP Version: 4.3.8 OS: FreeBSD 4.10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: tjg at meitech dot com
New email:
PHP Version: OS:


 [2004-09-03 03:55 UTC] tjg at meitech dot com
It would be a really good idea to implement an openssl_csr_parse function that could be used by someone implementing a PHP-based Certificate Authority to verify the information being presented by the requestor.  For example, if you thought you were issuing an e-mail certificate for "", it would be really handy to be able to verify that th CSR is asking for a certificate with that e-mail address in it.  Currently, the only way I can figure to check to make sure that the CSR had the correct information in it is to actually do the signing process and then use openssl_x509_parse to make sure that the attributes are correct, and discard the certificate if they are not.

Reproduce code:

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 19:02 UTC]
-Package: Feature/Change Request +Package: OpenSSL related
 [2022-04-08 07:48 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: ilutov
 [2022-04-08 07:48 UTC]
We're closing all feature requests from Please create an issue or PR on GitHub if this is still relevant.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Fri May 20 14:04:07 2022 UTC