|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
5 + 50 = ?
Subscribe to this entry?

 [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 13:05:44 2022 UTC