Req->Bug #39757 [Opn->Nab]: Distinguished names - openssl_csr_new
| From: | requinix@php.net | Date: | Sat, 05 May 2018 18:45:51 +0000 |
| Subject: | Req->Bug #39757 [Opn->Nab]: Distinguished names - openssl_csr_new | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-215078@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=39757&edit=1
ID: 39757
Updated by: requinix@php.net
Reported by: bassijunior at yahoo dot com dot br
Summary: Distinguished names - openssl_csr_new
-Status: Open
+Status: Not a bug
-Type: Feature/Change Request
+Type: Bug
-Package: Feature/Change Request
+Package: *General Issues
Operating System: Windows XP Professinal
PHP Version: 5.2.0
Block user comment: N
Private report: N
New Comment:
Old bug report is old.
I highly doubt this was an issue with PHP itself but with the OpenSSL configuration.
Previous Comments:
------------------------------------------------------------------------
[2006-12-06 16:19:57] bassijunior at yahoo dot com dot br
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 this bug report at https://bugs.php.net/bug.php?id=39757&edit=1