Tomcat 4: mod_jk filters only serlets and JSPs

2002-02-04 Thread Markus Maeder

I noticed a difference in handling filters in mod_jk an mod_webapp: mod_jk
filters only JSPs and servlets. mod_webapp filters everything (thats what I want).

Which behaviour is conformant to the specification?

Regards 
Markus



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Retrieving client certificate in tomcat via warp from apache

2002-01-31 Thread Markus Maeder

Hi Peter

You can read the certificate with

String certAttribute =javax.servlet.request.X509Certificate;
X509Certificate certificate[] =
(java.security.cert.X509Certificate[])request.getAttribute(certAttribute); 

With mod_webapp I couldn't get it to work. With mod_jk it is working.

Markus

Zitat von Peter Buus [EMAIL PROTECTED]:

 Hi,
 
 I have the following setup:
 
 Apache 1.3.22+mod_ssl 2.5.8+mod_webapp1.1 talking to a Tomcat 4.0.1 via a
 warp connector.
 
 The Apache is requiring client certificates on a given URL which is then
 sent to Tomcat via warp.
 My question is now, how do I retrieve the SSL variables (eg.
 SSL_CLIENT_CERT) from a servlet running on the Tomcat ?
.. 



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Client certificate with Apache 1.3, TC 4 and mod_webapp on SuSE Linux 7.3

2002-01-29 Thread Markus Maeder

Zitat von Thor Tall [EMAIL PROTECTED]:

 I have the same problem with tomcat 4.0.1 and
 mod_webapp and haven't been able to figure out how is
 should work. I have looked in the mod_webapp code and
 the SSL code seem to be in place. But I have not found
 out what the problem is. 
 Just a question do you get a null point back from your
 call ?

Yes, with mod_webapp I get a null pointer from 
String certAttribute = javax.servlet.request.X509Certificate;
X509Certificate certificate[] = 
(java.security.cert.X509Certificate[])request.getAttribute(certAttribute);

With mod_jk this is working.

Regards
Markus

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Client certificate with Apache 1.3, TC 4 and mod_webapp on SuSE Linux 7.3

2002-01-27 Thread Markus Maeder

Hi!

I was playing around with Tomcat 4.0.1 and couldn't get the client certificates
from apache through mod_webapp. So I tried Tomcat 4.0.2 b2 and the build from
January 27. I even compiled a new mod_webapp (1.0.2-tc402).

Then I tried ajp13 and mod_jk. This is working fine after I changed my code
(working in Tomcat 3.2x) from

String certAttribute = javax.servlet.request.X509Certificate;
X509Certificate certificate =
(java.security.cert.X509Certificate)request.getAttribute(certAttribute);

To version for Tomcat 4:
String certAttribute = javax.servlet.request.X509Certificate;
X509Certificate certificate[] =
(java.security.cert.X509Certificate[])request.getAttribute(certAttribute);

As I think I missed something in the configuration of mod_webapp, I wonder, if
somebody has a working configuration for getting client certificates with
mod_webapp, apache 1.3 and mod_ssl. 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]