|  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
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.
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: Sun Jun 26 14:03:41 2022 UTC