winstone container and ssl..

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

winstone container and ssl..

Nord, James
Hi all,
 
I have hudson setup to run standalone and I have enabled SSL support.  This works but IE 8 tries to do prompts for client authentication to the server and prompts me for a certificate to present to hudson.  Firefox does no such thing and I couldn't find out how to disable client auth requests in Hudson. 
 
 
Anyone have any clues?  Also the following shows in the logs:
 
[Winstone 2009/06/17 18:24:10] - Error within request handler thread
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(Unknown Source)
        at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)
        at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)
        at winstone.WinstoneInputStream.read(WinstoneInputStream.java:51)
        at javax.servlet.ServletInputStream.readLine(ServletInputStream.java:27)
        at winstone.WinstoneInputStream.readLine(WinstoneInputStream.java:82)
        at winstone.HttpListener.parseURI(HttpListener.java:231)
        at winstone.RequestHandlerThread.run(RequestHandlerThread.java:87)
        at java.lang.Thread.run(Unknown Source)
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.getSession(Unknown Source)
        at winstone.ssl.HttpsListener.parseSocketInfo(HttpsListener.java:107)
        at winstone.HttpListener.parseURI(HttpListener.java:220)
        ... 2 more
Caused by: java.io.EOFException: SSL peer shut down incorrectly
        at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
        ... 8 more
Regards,
 
    /James

**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the [hidden email] and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.

NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: winstone container and ssl..

Kohsuke Kawaguchi
Administrator

I have no clue, but my usual suggestion when Winstone doesn't work is to
use different servlet containers like GlassFish or Tomcat, where there's
abundance of information as to how to configure these things.

Nord, James wrote:

> Hi all,
>  
> I have hudson setup to run standalone and I have enabled SSL support.
> This works but IE 8 tries to do prompts for client authentication to the
> server and prompts me for a certificate to present to hudson.  Firefox
> does no such thing and I couldn't find out how to disable client auth
> requests in Hudson.  
>  
>  
>  
> Anyone have any clues?  Also the following shows in the logs:
>  
> [Winstone 2009/06/17 18:24:10] - Error within request handler thread
> javax.net.ssl.SSLException: Connection has been shutdown:
> javax.net.ssl.SSLHandshakeException: Remote host closed connection
> during handshake
>         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(Unknown
> Source)
>         at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown
> Source)
>         at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown
> Source)
>         at
> winstone.WinstoneInputStream.read(WinstoneInputStream.java:51)
>         at
> javax.servlet.ServletInputStream.readLine(ServletInputStream.java:27)
>         at
> winstone.WinstoneInputStream.readLine(WinstoneInputStream.java:82)
>         at winstone.HttpListener.parseURI(HttpListener.java:231)
>         at
> winstone.RequestHandlerThread.run(RequestHandlerThread.java:87)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed
> connection during handshake
>         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown
> Source)
>         at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unkno
> wn Source)
>         at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown
> Source)
>         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.getSession(Unknown
> Source)
>         at
> winstone.ssl.HttpsListener.parseSocketInfo(HttpsListener.java:107)
>         at winstone.HttpListener.parseURI(HttpListener.java:220)
>         ... 2 more
> Caused by: java.io.EOFException: SSL peer shut down incorrectly
>         at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
>         ... 8 more
>
> Regards,
>  
>     /James
>
> **************************************************************************************
> This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the [hidden email] and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.
>
> NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
> **************************************************************************************
>

--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: winstone container and ssl..

Richard Bywater
In reply to this post by Nord, James
My only thought would be to make sure that the certificate you are
using is a good SSL cert (maybe Firefox is a little more forgiving?)

Richard.

On 6/18/09, Nord, James <[hidden email]> wrote:

> Hi all,
>
> I have hudson setup to run standalone and I have enabled SSL support.
> This works but IE 8 tries to do prompts for client authentication to the
> server and prompts me for a certificate to present to hudson.  Firefox
> does no such thing and I couldn't find out how to disable client auth
> requests in Hudson.
>
>
>
> Anyone have any clues?  Also the following shows in the logs:
>
> [Winstone 2009/06/17 18:24:10] - Error within request handler thread
> javax.net.ssl.SSLException: Connection has been shutdown:
> javax.net.ssl.SSLHandshakeException: Remote host closed connection
> during handshake
>         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(Unknown
> Source)
>         at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown
> Source)
>         at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown
> Source)
>         at
> winstone.WinstoneInputStream.read(WinstoneInputStream.java:51)
>         at
> javax.servlet.ServletInputStream.readLine(ServletInputStream.java:27)
>         at
> winstone.WinstoneInputStream.readLine(WinstoneInputStream.java:82)
>         at winstone.HttpListener.parseURI(HttpListener.java:231)
>         at
> winstone.RequestHandlerThread.run(RequestHandlerThread.java:87)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed
> connection during handshake
>         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown
> Source)
>         at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unkno
> wn Source)
>         at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown
> Source)
>         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.getSession(Unknown
> Source)
>         at
> winstone.ssl.HttpsListener.parseSocketInfo(HttpsListener.java:107)
>         at winstone.HttpListener.parseURI(HttpListener.java:220)
>         ... 2 more
> Caused by: java.io.EOFException: SSL peer shut down incorrectly
>         at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
>         ... 8 more
>
> Regards,
>
>     /James
>
> **************************************************************************************
> This message is confidential and intended only for the addressee. If you
> have received this message in error, please immediately notify the
> [hidden email] and delete it from your system as well as any copies. The
> content of e-mails as well as traffic data may be monitored by NDS for
> employment and security purposes. To protect the environment please do not
> print this e-mail unless necessary.
>
> NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18
> 4EX, United Kingdom. A company registered in England and Wales. Registered
> no. 3080780. VAT no. GB 603 8808 40-00
> **************************************************************************************
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: winstone container and ssl..

Kohsuke Kawaguchi-3
In reply to this post by Nord, James

This turns out to be a bug in Winstone. I fixed this and the fix should
be available in 1.360.

On 06/17/2009 10:25 AM, Nord, James wrote:

> Hi all,
>
> I have hudson setup to run standalone and I have enabled SSL support.
> This works but IE 8 tries to do prompts for client authentication to the
> server and prompts me for a certificate to present to hudson.  Firefox
> does no such thing and I couldn't find out how to disable client auth
> requests in Hudson.
>
>
>
> Anyone have any clues?  Also the following shows in the logs:
>
> [Winstone 2009/06/17 18:24:10] - Error within request handler thread
> javax.net.ssl.SSLException: Connection has been shutdown:
> javax.net.ssl.SSLHandshakeException: Remote host closed connection
> during handshake
>          at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(Unknown
> Source)
>          at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown
> Source)
>          at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown
> Source)
>          at
> winstone.WinstoneInputStream.read(WinstoneInputStream.java:51)
>          at
> javax.servlet.ServletInputStream.readLine(ServletInputStream.java:27)
>          at
> winstone.WinstoneInputStream.readLine(WinstoneInputStream.java:82)
>          at winstone.HttpListener.parseURI(HttpListener.java:231)
>          at
> winstone.RequestHandlerThread.run(RequestHandlerThread.java:87)
>          at java.lang.Thread.run(Unknown Source)
> Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed
> connection during handshake
>          at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown
> Source)
>          at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unkno
> wn Source)
>          at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown
> Source)
>          at com.sun.net.ssl.internal.ssl.SSLSocketImpl.getSession(Unknown
> Source)
>          at
> winstone.ssl.HttpsListener.parseSocketInfo(HttpsListener.java:107)
>          at winstone.HttpListener.parseURI(HttpListener.java:220)
>          ... 2 more
> Caused by: java.io.EOFException: SSL peer shut down incorrectly
>          at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
>          ... 8 more
>
> Regards,
>
>      /James
>
> **************************************************************************************
> This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the [hidden email] and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.
>
> NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
> **************************************************************************************
>


--
Kohsuke Kawaguchi | InfraDNA, Inc. | http://infradna.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Build specific variables ?

Zerbst, Carsten
Build specific variables ?

Hello,

I need to run Builds with a specifc set of input variables.
Unlike matrix projects these input variables

1. come from an input file
2. change from build to build
3. at least the path of the input file has to be available as parameter in the build steps,
even better the variables defined in that file


Using the FilesFound Extension, I could start a Build whenever a new file arrived,
but how could I use the triggering file name within  build steps as input for ANT and shell scripts ?

If it is not possible out of the box, what needs to be extended in Hudson to do so ?

Bye, Carsten


________________________________________________
PROSTEP ITS GmbH, Dolivostr.11, D-64293 Darmstadt
HR: Amtsgericht Darmstadt, HRB 8805
Geschäftsführung: Dr. Markus Sachers, Reinhard Betz
________________________________________________

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Build specific variables ?

petehayes
Does Hudson's built in  parameterized build support not meet your needs?

http://wiki.hudson-ci.org/display/HUDSON/Parameterized+Build

Peter

On Tue, May 25, 2010 at 4:56 PM, Zerbst, Carsten <[hidden email]> wrote:

Hello,

I need to run Builds with a specifc set of input variables.
Unlike matrix projects these input variables

1. come from an input file
2. change from build to build
3. at least the path of the input file has to be available as parameter in the build steps,
even better the variables defined in that file


Using the FilesFound Extension, I could start a Build whenever a new file arrived,
but how could I use the triggering file name within  build steps as input for ANT and shell scripts ?

If it is not possible out of the box, what needs to be extended in Hudson to do so ?

Bye, Carsten


________________________________________________
PROSTEP ITS GmbH, Dolivostr.11, D-64293 Darmstadt
HR: Amtsgericht Darmstadt, HRB 8805
Geschäftsführung: Dr. Markus Sachers, Reinhard Betz
________________________________________________


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Build specific variables ?

Simon Wiest
Hi Carsten,

you can also check
http://wiki.hudson-ci.org/display/HUDSON/Envfile+Plugin. Although it
does not trigger builds by itself, it sets environment variables
according to the contents of a key-value file.

Cheers,
Simon.

Pete (26.05.2010 00:09):

> Does Hudson's built in  parameterized build support not meet your needs?
>
> http://wiki.hudson-ci.org/display/HUDSON/Parameterized+Build
>
> Peter
>
> On Tue, May 25, 2010 at 4:56 PM, Zerbst, Carsten
> <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Hello,
>
>     I need to run Builds with a specifc set of input variables.
>     Unlike matrix projects these input variables
>
>     1. come from an input file
>     2. change from build to build
>     3. at least the path of the input file has to be available as
>     parameter in the build steps,
>     even better the variables defined in that file
>
>
>     Using the FilesFound Extension, I could start a Build whenever a new
>     file arrived,
>     but how could I use the triggering file name within  build steps as
>     input for ANT and shell scripts ?
>
>     If it is not possible out of the box, what needs to be extended in
>     Hudson to do so ?
>
>     Bye, Carsten

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...