CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
X.509 retrieval

 



gelila
stranger

Mar 26, 2001, 10:34 AM

Post #1 of 1 (371 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
);
}



 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives