Re: Client Certificates

2023-07-17 Thread Timothy Ward
Here is a filter that I am using to get the client certificates, the issue I'm having is passing them along via the headers so they can be picked up as CGI Environment Variables down the road. This does get me the certificate information though. Just ignor the mutableRequest stuff as that is what

Re: Get Client Certificate Information

2023-06-22 Thread Timothy Ward
< ch...@christopherschultz.net> wrote: > Timothy, > > On 6/22/23 14:01, Timothy Ward wrote: > > I am trying to go the route of modifying the CGIServlet from: h > > ttps:// > github.com/apache/tomcat/blob/main/java/org/apache/catalina/servlets/CGIServlet.java#L771 > >

Re: Get Client Certificate Information

2023-06-22 Thread Timothy Ward
; Timothy, > > On 6/21/23 16:56, Timothy Ward wrote: > > import javax.servlet.http.HttpServletRequest; > > import javax.security.cert.Certificate; > > import javax.security.cert.X509Certificate; > > > > public class GrabCert extends Object > &

Re: Get Client Certificate Information

2023-06-21 Thread Timothy Ward
or] (1: 0): location: class GrabCert [Error] (1: 0): 1 error On Wed, Jun 21, 2023 at 2:32 PM Christopher Schultz < ch...@christopherschultz.net> wrote: > Timothy, > > On 6/21/23 13:55, Timothy Ward wrote: > > Not sure it's lined up right, lost in copy/paste I think, the

Re: Get Client Certificate Information

2023-06-21 Thread Timothy Ward
I'm attempting to run this from within Oracle 19c, so I believe that is throwing a whole other wrinkle in there. On Wed, Jun 21, 2023 at 1:48 PM Mark Thomas wrote: > > > On 21/06/2023 18:29, Timothy Ward wrote: > > I tried the following: > > > > import javax

Re: Get Client Certificate Information

2023-06-21 Thread Timothy Ward
n 21, 2023 at 1:52 PM Rob Sargent wrote: > > > > On Jun 21, 2023, at 11:29 AM, Timothy Ward > wrote: > > > > I tried the following: > > > > import javax.servlet.http.HttpServletRequest; > > import javax.security.cert.Certificate; > > import ja

Re: Get Client Certificate Information

2023-06-21 Thread Timothy Ward
Thomas wrote: > On 12/06/2023 12:00, Timothy Ward wrote: > > Changing the CGI Servlet may be the easiest route, but if I wanted to use > > it as intended, I'm guessing I would use the original Java code that you > > sent below? > > > > X509Certificat

Re: Get Client Certificate Information

2023-06-12 Thread Timothy Ward
/apache/tomcat/blob/main/java/org/apache/catalina/servlets/CGIServlet.java#L771 > > You should be able to copy the source of Tomcat's CGI servlet, modify as > required and then just deploy it as part of the web application the same > way you would any other servlet. > > Mark >

Re: Get Client Certificate Information

2023-06-12 Thread Timothy Ward
would need to extend it and add the > certificate information as an additional environment variable (or > variables). > > Do you need to use CGI? It is fairly unusual to see CGI mention on this > list these days. > > Mark > > > On 11/06/2023 22:56, Timothy Ward wrote: >

Re: Get Client Certificate Information

2023-06-11 Thread Timothy Ward
quest().getAttribute("jakarta.servlet.request.X509Certificate"); > > > https://jakarta.ee/specifications/servlet/5.0/apidocs/jakarta/servlet/servletrequest#getAttribute(java.lang.String) > > On Sun, Jun 11, 2023 at 11:20 PM Timothy Ward > wrote: > > > > Tomcat 10

Get Client Certificate Information

2023-06-11 Thread Timothy Ward
Tomcat 10.1 setup using certificateVerification="required" on Windows Server 2019, is there a way to get the SSL_CLIENT_S_DN and SSL_CLIENT_I_DN via a CGI perl script? I think I have the SSLValve valve implemented, but there is nothing for sure that tells me that it is. The browser prompts for th

Re: IOException with Tomcat Comet during write/flush

2009-08-14 Thread Jason Ward
which doesn't give me a trace... just the error event. But I'm sure you caught that from my first post.. Filip Hanik - Dev Lists wrote: don't clip the stack trace please, do you have the full one? On 08/14/2009 03:24 PM, Jason Ward wrote: Hello, I'm seeing IOExceptions when

IOException with Tomcat Comet during write/flush

2009-08-14 Thread Jason Ward
Hello, I'm seeing IOExceptions when writing/flushing my Comet servlet OutputStream. The fist exception is difficult to pinpoint, but it seems it raises and ERROR event which ultimately enacts a event.close(). This in turn results in the following stack trace for subsequent operations: java.l

Re: Deployment: do not delete specified folder

2009-03-27 Thread Ward
okey Thanks a lot mate, should have asked this a lot earlier, would have saved me a lot of frustrations! Ward 2009/3/27 Caldarale, Charles R : >> From: Ward [mailto:wardloot...@gmail.com] >> Subject: Re: Deployment: do not delete specified folder >> >> Read the desired

Re: Deployment: do not delete specified folder

2009-03-27 Thread Ward
2009/3/26 Caldarale, Charles R : >> From: Ward [mailto:wardloot...@gmail.com] >> Subject: Re: Deployment: do not delete specified folder >> >> Can you please tell/hint me how do I access file on >> server, not in webserver directory > > Static resources are n

Re: Deployment: do not delete specified folder

2009-03-26 Thread Ward
2009/3/26 Caldarale, Charles R : >> From: Ward [mailto:wardloot...@gmail.com] >> Subject: Re: Deployment: do not delete specified folder >> >> So supposed there is a file in the /media directory, let's >> say file.jpg There is no way to acces this file trough a

Re: Deployment: do not delete specified folder

2009-03-26 Thread Ward
an acces the target directory directly in my Java code, that's no problem, but what I wanna do is something different? Greetings Ward Caldarale, Charles R schreef: From: Ward [mailto:wardloot...@gmail.com] Subject: Deployment: do not delete specified folder to be able to acces the

Deployment: do not delete specified folder

2009-03-26 Thread Ward
rprise v 10 Thanks in advance for helping me out! Grtz Ward - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Tomcat 6.0.10 + Apache 2.2 4 + mod_jk 1.2.21

2007-05-31 Thread Patrick Ward
="/path/to/mod_jk.so" /> -- __ __ ___ Patrick Ward /_/| //\ /_/| Jet Propulsion Lab || | | |__ \| || | Pasadena, CA ___|| | |

Re: passing Apache htpasswd authnetication to Tomcat

2007-05-31 Thread Patrick Ward
-David Patrick Ward wrote: Currently we have Apache configured to do user authentication and Tomcat to run the java application. At this point, Apache is asking for authentication but the information is not being passed on to Tomcat. We are using the following versions: Server version: Apache/2.2.

passing Apache htpasswd authnetication to Tomcat

2007-05-30 Thread Patrick Ward
version 6.0.10 Thank you! -- __ __ ___ Patrick Ward /_/| //\ /_/| Jet Propulsion Lab || | | |__ \| || | Pasadena, CA ___|| | | |__)/| || |___ M/S 2923-120

Malinda Ward is out of the office.

2007-05-24 Thread Malinda Ward
I will be out of the office starting 05/24/2007 and will not return until 05/29/2007. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

Malinda Ward is out of the office.

2007-05-23 Thread Malinda Ward
I will be out of the office starting 05/24/2007 and will not return until 05/29/2007. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PR

Re: Response already committed

2006-10-05 Thread Greg Ward
On 03 October 2006, Dan Adams said: > Hmm, I don't think that is the culprit. I think all of our stuff is > thread safe. We're using a framework (Tapestry) which shields us from > threading issues like that and prevents us from storing request stuff in > the session. Also, if that were the case wou

Monitoring Tomcat load (4.1.30)

2006-09-25 Thread Greg Ward
Hi -- we've recently had problems with Tomcat on one server getting overloaded and then refusing further requests. What happens is that more and more request-processing threads get stuck on some slow operation (eg. database query, opening a socket to another server), until eventually Tomcat's thre

Re: Limiting the number of connection threads per application

2006-05-04 Thread Greg Ward
On 04 May 2006, Ken Dombeck said: > We have 2 applications installed inside the same Tomcat 5.0 instance > app1 and app2. URL app1.url.com is for app1 and app2.url.com is for > app2. Both URLs have the same ip address but still hit port 80. The > maxThreads for the connector is set to 100. > > T

RE: Tomcat caching proprties file loaded with : myClass.getResourceAsStream( "props.properties")

2006-05-03 Thread Chris Ward
gt; > if you want to be able to reload it, I suggest that you load > it using a > FileInputstream, and not getResourceAsStream from the class > loader. if you load it through the class loader, the class > loader doesn't reload > it until restart. > > Filip > >

Tomcat caching proprties file loaded with : myClass.getResourceAsStream( "props.properties")

2006-05-03 Thread Chris Ward
Hi all, I've build a little util class for sucking in properties. When I use it from "command line" progs it seems to work okay, but when I call it from a servlet it never seems to load an *updated* version of the .properties file. I am using a HashMap to cache the Properties and associated ti

Re: Limiting effects of badly-behaved webapps

2006-05-02 Thread Greg Ward
On 02 May 2006, Tim Funk said: > An "easier solution" is to throttle the webapp via a filter. For example: Good idea, thanks! I'll try to implement that and report back to the list. Greg - To unsubscribe, e-mail: [EMAIL

Re: iSeries Installation

2006-05-02 Thread Greg Ward
On 02 May 2006, Mike Scherer said: > How and where do I specify the JAVA_HOME or the JRE_HOME Environment > variables? What OS are you using? With most Unix-like systems, you just do something like export JAVA_HOME=... before running the Tomcat launch script. E.g. if you start Tomcat from an

Limiting effects of badly-behaved webapps

2006-05-02 Thread Greg Ward
We've been using Tomcat 4.1.30 happily for a couple of years now, but every so often one badly-behaved webapp can make life unhappy for everyone living in the container. (Our Tomcat deployment is part of a suite of applications that run on a small cluster of Linux servers; all of the webapps runni

rotating tomcat logs

2006-01-31 Thread Patrick Ward
> admin.log -- __ __ ___ Patrick Ward /_/| //\ /_/| Jet Propulsion Lab || | | |__ \| || | Pasadena, CA ___|| | | |__)/| || |___ M/S 2923-

Re: accessing port 8443 with http

2006-01-06 Thread Patrick S Ward
nding it's public key certificate. --David Patrick S Ward wrote: I have a Tomcat 5.5.9 web application server running on a webserver listening on port 8443. Why is it that when I access http://:8443, I am prompted to download a file of the format application/octet-stream from any b

accessing port 8443 with http

2006-01-05 Thread Patrick S Ward
I have a Tomcat 5.5.9 web application server running on a webserver listening on port 8443. Why is it that when I access http://:8443, I am prompted to download a file of the format application/octet-stream from any browser from any platform? If I access https://:8443, I see the tomcat home pag