You are here: Creating CSR with multiple values for attributes « PHP Programming Language « IT news, forums, messages
Creating CSR with multiple values for attributes

Posted by lurenzu on 12/16/49 11:57

Hello,

I'm trying to get PHP to generate a CSR in which I need the
organizationalUnitName 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.organizationalUnitName = Level 0 OU
1.organizationalUnitName = Level 1 OU
....
n.organizationalUnitName = Level N OU

I hoped that for PHP, I just needed to build an array looking like
dn_array = array(
"0.organizationalUnitName" => "Level 0 OU"
"1.organizationalUnitName" => "Level 1 OU"
....
);

But what I get in the PHP errorlog at the openssl_csr_new($dn_array,
....) call is a:
"dn: 0.organizationalUnitName 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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация