SSLVerifyClient and apache Alias

SSLVerifyClient and apache Alias

am 18.06.2004 16:03:24 von Tom Duijf

This is a multi-part message in MIME format.

------_=_NextPart_001_01C4553D.052A70D0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello,
=20
We're setting up a site with client authentication and are using apache
1.3 and mod_ssl for that.
=20
We are using the apache alias command to make all requests to a certain
url pass through a php script.
The web dir where the script is located is protected by SSLVerifyClient
require.
=20
When i address a directory beyond the alias definition (which then is
passed through the php script), the client will get a SSL certificate
selection box.
When i authenticate with a correct SSL client cert, all is well,
everything works as it should work.
When i authenticate with a wrong SSL client cert, i *should* get a
forbidden, page not found or something alike.
=20
The problem is the folowing:
In this last example, i DO get the page in front of me, but only the
first time, on a refresh/reload of the page i get a forbidden.
It seems that only the initial request with a wrong certificate is
allowed to the apache Alias, after that everything is denied.
=20
Here is a small piece of my configuration.
=20
Alias /protected/dynamic
/website/docroot/protected/dynamic/index.php

SSLVerifyClient require
SSLVerifyDepth 2


Without the alias definition, everything does work as it should. The
alias definition is the causing the problem (but we kind of need it).
Am i doing something wrong? does the Alias definition need special
treatment within the ssl config?
=20
Regards,
Tom Duijf
Cee-Kay

------_=_NextPart_001_01C4553D.052A70D0
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable



charset=3Dus-ascii">


class=3D993424813-18062004>Hello,

class=3D993424813-18062004> 

We're =
setting up a=20
site with client authentication and are using apache 1.3 and mod_ssl for =

that.

class=3D993424813-18062004> 

We are =
using the=20
apache alias command to make all requests to a certain url pass through =
a php=20
script.

The =
web dir where=20
the script is located is protected by SSLVerifyClient=20
require.

class=3D993424813-18062004> 

When i =
address a=20
directory beyond the alias definition (which then is passed through the =
php=20
script), the client will get a SSL certificate selection=20
box.

When i =
authenticate=20
with a correct SSL client cert, all is well, everything works as it =
should=20
work.

When i =
authenticate=20
with a wrong SSL client cert, i *should* get a forbidden, page not found =
or=20
something alike.


class=3D993424813-18062004> 

The =
problem is the=20
folowing:

In =
this last=20
example, i DO get the page in front of me, but only the first time, on a =

refresh/reload of the page i get a forbidden.

It =
seems that only=20
the initial request with a wrong certificate is allowed to the apache =
Alias,=20
after that everything is denied.

class=3D993424813-18062004> 

Here =
is a small=20
piece of my configuration.

class=3D993424813-18062004> 

class=3D993424813-18062004> Alias   =
/protected/dynamic =20
 /website/docroot/protected/dynamic/index.php

class=3D993424813-18062004><Directory=20
/website/docroot/protected>
      &nb=
sp;=20
SSLVerifyClient require
       =20
SSLVerifyDepth  2
</Directory>

class=3D993424813-18062004>Without the alias=20
definition, everything does work as it should. The alias definition is =
the=20
causing the problem (but we kind of need it).

Am i =
doing something=20
wrong? does the Alias definition need special treatment within the ssl=20
config?

class=3D993424813-18062004> 

class=3D993424813-18062004>Regards,

Tom=20
Duijf

class=3D993424813-18062004>Cee-Kay


------_=_NextPart_001_01C4553D.052A70D0--
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org