Hello,
I'm trying to get PHP to generate a CSR in which I need the
organizationalU nitName attribute/field to have multiple values.
In the openssl.cnf file when generating the CSR with the "openssl req"
command line, all I need is to include stanza such as:
0.organizationa lUnitName = Level 0 OU
1.organizationa lUnitName = Level 1 OU
....
n.organizationa lUnitName = Level N OU
I hoped that for PHP, I just needed to build an array looking like
dn_array = array(
"0.organization alUnitName" ="Level 0 OU"
"1.organization alUnitName" ="Level 1 OU"
....
);
But what I get in the PHP errorlog at the openssl_csr_new ($dn_array,
....) call is a:
"dn: 0.organizationa lUnitName is not a recognized name" message and so
on for every multi-valued attribute...
Any one ever succedeed in getting openssl_csr_new to do that stuff ?
Thanks,
Hubert.
I'm trying to get PHP to generate a CSR in which I need the
organizationalU nitName attribute/field to have multiple values.
In the openssl.cnf file when generating the CSR with the "openssl req"
command line, all I need is to include stanza such as:
0.organizationa lUnitName = Level 0 OU
1.organizationa lUnitName = Level 1 OU
....
n.organizationa lUnitName = Level N OU
I hoped that for PHP, I just needed to build an array looking like
dn_array = array(
"0.organization alUnitName" ="Level 0 OU"
"1.organization alUnitName" ="Level 1 OU"
....
);
But what I get in the PHP errorlog at the openssl_csr_new ($dn_array,
....) call is a:
"dn: 0.organizationa lUnitName is not a recognized name" message and so
on for every multi-valued attribute...
Any one ever succedeed in getting openssl_csr_new to do that stuff ?
Thanks,
Hubert.