From:             john dot douglass at oit dot gatech dot edu
Operating system: Linux 2.4.22
PHP version:      5.0.3
PHP Bug Type:     OpenSSL related
Bug description:  openssl_csr_sign ignoring configargs

Description:
------------
Attempting to use function openssl_csr_sign with the optional "configargs"
array to specify which extensions to sign the cert with.

The function works and I get a signed certificate, however the config arg
{"x509_extensions" => "auth_only"} doesn't appear to work.

PHP 5.0.3 with OpenSSL support (which everything works except for this one
thing)

Reproduce code:
---------------
Source at:
http://xlr8ed.ts.gatech.edu/kalamos/obug.phps

OpenSSL config at:
http://xlr8ed.ts.gatech.edu/kalamos/obug-openssl.conf

Client code at:
http://xlr8ed.ts.gatech.edu/kalamos/obug-client.phps

Expected result:
----------------
I expect a signed certificate with the specified extensions (the
keyUsage/extendedKeyUsage,etc) as specified in the "auth_only" extension
section

Actual result:
--------------
A certificate with apparently NO extensions. 

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

Reply via email to