Perl, Apache and Certificates

A

am500803

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.
 
S

smallpond

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{'SSL_CLIENT_DN'}
 
A

am500803

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

In the CGI check
  $ENV{'SSL_CLIENT_DN'}

Thx. I didnt have +StdEnvVars :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,516
Members
44,984
Latest member
PeakCBDGummiesReview

Latest Threads

Top