From:             tjg at meitech dot com
Operating system: FreeBSD 4.10
PHP version:      4.3.8
PHP Bug Type:     Feature/Change Request
Bug description:  an openssl_csr_parse function would be handy

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
"[EMAIL PROTECTED]", 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

-- 
Edit bug report at http://bugs.php.net/?id=29961&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=29961&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29961&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29961&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=29961&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=29961&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=29961&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=29961&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=29961&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=29961&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=29961&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=29961&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=29961&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=29961&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=29961&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=29961&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=29961&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=29961&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=29961&r=float

Reply via email to