RE: mod_ssl: SSLRequire

<[email protected]>
Newsgroups gmane.comp.apache.mod-ssl.user
Message-ID <[email protected]>
Perhaps
  SSLVerifyClient require

Default is
  SSLVerifyClient none

Greetings

Oliver
-----Ursprüngliche Nachricht-----
Von: [email protected] im Auftrag von Olaf Gellert
Gesendet: Mi 05.04.2006 14:08
An: [email protected]
Betreff: mod_ssl: SSLRequire
 
I try to do X.509 client authentication with Apache
Apache/2.0.54. This works fine. Now I want to check
for certain fields in the client certificate with
SSLRequire. Even though I ask that

%{SSL_CLIENT_S_DN_CN} eq "Testuser"

the server permits accesss to a client with
SSL_CLIENT_S_DN_CN="testuser2". What's wrong?

Here is the according section from my config:

     SSLOptions +FakeBasicAuth +StdEnvVars +CompatEnvVars +StrictRequire
     <Directory "/home/gellert/htdocs/ssltest">

       AllowOverride None
       Options +FollowSymLinks +Includes
       Order deny,allow
       Deny from all
       Allow from localhost
       SSLRequireSSL
       SSLRequire (    %{SSL_CLIENT_S_DN_O} eq "SSLTest SubCA 01" \
                    && %{SSL_CLIENT_S_DN_OU} eq "User Certificates" \
                    && %{SSL_CLIENT_S_DN_CN} eq "Testuser" )
    </Directory>

Anything forgotten? If I print out the environment from
within the webpage (with SSI #printenv), I see (among all
the other variables):

SSL_CLIENT_S_DN_O=SSLTest SubCA 01
SSL_CLIENT_S_DN_OU=User Certificates
SSL_CLIENT_S_DN_CN=testuser2

Hmmm.... Any clues?

Olaf

-- 
Dipl.Inform. Olaf Gellert                  PRESECURE (R)
Senior Researcher,                       Consulting GmbH
Phone: (+49) 0700 / PRESECURE           [email protected]

                        A daily view on Internet Attacks
                        https://www.ecsirt.net/sensornet


______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [email protected]
Automated List Manager                            [email protected]
winmail.dat (application/ms-tnef, 3.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.