Click here to get back home

Perl, Apache and Certificates

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Perl, Apache and Certificates am500803 03-04-2008
Posted by am500803 on March 4, 2008, 5:05 pm
Please log in for more thread options
Hi !

I am using Apache2 with self-signed certificates. I also made client
certificates and everything is cool.
Of course, i am also using mod_ssl.
But somehow I cannot get DN of the certificate into perl CGI code. It
ought to be in an SSL... environment variables, but its not. If I set
SSLOptions in apache config to FakeAuth, I can see full certificate
description in access file, but yet not in a perl script. Do i need to
'use' some special library ?
No direct documentation provided nowwhere, so any hint is appreciable.

Posted by smallpond on March 4, 2008, 6:07 pm
Please log in for more thread options
On Mar 4, 5:05 pm, am500...@gmail.com wrote:
> Hi !
>
> I am using Apache2 with self-signed certificates. I also made client
> certificates and everything is cool.
> Of course, i am also using mod_ssl.
> But somehow I cannot get DN of the certificate into perl CGI code. It
> ought to be in an SSL... environment variables, but its not. If I set
> SSLOptions in apache config to FakeAuth, I can see full certificate
> description in access file, but yet not in a perl script. Do i need to
> 'use' some special library ?
> No direct documentation provided nowwhere, so any hint is appreciable.


In http.conf you should have:
SSLVerifyClient require (or 2)
SSLOptions +StdEnvVars


In the CGI check
$ENV

Posted by am500803 on March 7, 2008, 7:58 pm
Please log in for more thread options
> On Mar 4, 5:05 pm, am500...@gmail.com wrote:
>
> > Hi !
>
> > I am using Apache2 with self-signed certificates. I also made client
> > certificates and everything is cool.
> > Of course, i am also using mod_ssl.
> > But somehow I cannot get DN of the certificate into perl CGI code. It
> > ought to be in an SSL... environment variables, but its not. If I set
> > SSLOptions in apache config to FakeAuth, I can see full certificate
> > description in access file, but yet not in a perl script. Do i need to
> > 'use' some special library ?
> > No direct documentation provided nowwhere, so any hint is appreciable.
>
> In http.conf you should have:
> SSLVerifyClient require =A0(or 2)
> SSLOptions +StdEnvVars
>
> In the CGI check
> =A0 $ENV

Thx. I didnt have +StdEnvVars :)

Similar ThreadsPosted
Using SSL certificates with LWP August 30, 2004, 3:41 pm
MD5 and SHA1 fingerprint from SSL certificates June 3, 2008, 1:53 pm
starting apache with mod_perl, error on Apache.pm July 21, 2004, 5:26 pm
Perl And Apache. October 24, 2005, 12:37 am
Perl On Apache August 10, 2007, 2:13 pm
Perl and Apache locking October 14, 2005, 5:16 pm
Apache and Perl in Windows December 23, 2005, 7:29 pm
problem with perl from apache February 2, 2006, 3:57 am
Trouble with Perl on Apache February 6, 2006, 12:04 am
Apache htaccess and perl August 5, 2006, 1:38 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap