php.net |  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:
MUST BE VALID
Solve the problem:
35 + 14 = ?
Subscribe to this entry?

 
 [2004-09-03 03:55 UTC] tjg at meitech dot com
Description:
------------
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 "blah@blah.com", 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:
---------------
None

Expected result:
----------------
None

Actual result:
--------------
None

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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