
gelila
stranger
Mar 26, 2001, 10:34 AM
Post #1 of 1
(246 views)
|
|
X.509 retrieval
|
Can't Post
|
|
Hi, I'm trying to write a cgi script that searches and retrieves X.509 certificates in public LDAP servers (VeriSign,Entrust...). I make the connection in the following code to directory.verisign.com but get an "Server Unwilling to Perform" error. What am I doing wrong? And how do you extract the X.509 certificate? ........ my $result = LDAPsearch($ldap,"(cn=*)",\@Attrs ); ........ ........ sub LDAPsearch { my ($ldap,$searchString,$attrs,$base) = @_ ; if (!$base ) { $base = "o=verisign"; } if (!$attrs ) { $attrs = ['cn','sn']; } my $result = $ldap->search ( base => "$base", scope => "sub", filter => "$searchString", attrs => $attrs ); }
|