From:             bassijunior at yahoo dot com dot br
Operating system: Windows XP Professinal
PHP version:      5.2.0
PHP Bug Type:     Feature/Change Request
Bug description:  Distinguished names - openssl_csr_new

Description:
------------
Hi, 

I need to create a certificate request(CSR) using a openssl_csr_new
function.

But I have a problem with the openssl.cnf file.

In the section distinguished_name has a several fields, like a
countryName, emailAddress and others.

My commonName has the length bigger than 64, that is standard value of
openssl.cnf. But I can`t change this valeu to the commonName_max = 128. I
already tried all possible things. The openssl.cnf file is not accepting
changes in this field.

Is it a bug?  

Thanks!


Reproduce code:
---------------
<?php.
.
.
.

$dn = array(
"commonName" => some name bigger than 64
);


openssl_csr_new($dn, $privkey, $config);

.
.
.
?>

Actual result:
--------------
The certificate request(CSR) was not created because the length of
commonName.

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

Reply via email to