RE: Enabling SSL in tomcat--specific questions

2002-05-23 Thread Rutledge, Aaron


Thanks!  I downloaded JDK1.4 and it worked like a charm too.  I guess
I'll never figure out what was causing my exception.  Best regards!
Aaron 


-Original Message-
From: Oki DZ [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 7:06 PM
To: Tomcat Users List
Subject: Re: Enabling SSL in tomcat--specific questions


On 05/23 03:14 "Rutledge, Aaron" wrote:
> If I am able to create a .keyfile, do I have JSSE installed correctly?

I use JDK1.4 and Tomcat 4.0.3; it was all I needed to get SSL running.
(And the .keystore file, of course, in the root's home directory;
because I 
run Tomcat under root.) FYI, the certificate's passphrase has to be
"changeit".

Oki


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Enabling SSL in tomcat--specific questions

2002-05-22 Thread Oki DZ

On 05/23 03:14 "Rutledge, Aaron" wrote:
> If I am able to create a .keyfile, do I have JSSE installed correctly?

I use JDK1.4 and Tomcat 4.0.3; it was all I needed to get SSL running.
(And the .keystore file, of course, in the root's home directory; because I 
run Tomcat under root.) FYI, the certificate's passphrase has to be "changeit".

Oki


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Enabling SSL in tomcat

2002-05-22 Thread Rutledge, Aaron

I guess I'll try this one more time.  Last time I posted it quickly got
burried.  Any help would be greatly appreciated and would contribute
greatly to my mental health! Regards, Aaron

-Original Message-
From: Rutledge, Aaron 
Sent: Wednesday, May 22, 2002 7:21 AM
To: Tomcat Users List
Subject: RE: Enabling SSL in tomcat



Hello,
I keep seeing the topic of SSL configuration come up, but I have yet
heard anyone with a simmilar problem as mine.  I am surprised this can
be so problematic since it seems so straight forward. 

I tried using Joaquin's example and got the same exception...

StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw
exception
java.lang.IllegalStateException
at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.ja
va:159)

Anyone have any idea why the connector would throw this kind of
exception?  As soon as I remove the connector Tomcat loads fine.  Here
is my current connector configuration in server.xml...















I also received the same exception using the example configuration.  I
wish I at least knew where to start looking.  I've read over the How To
a million times.  Is it as simple as adding the jcert.jar, jnet.jar,
jsse.jar files to the jre/lib/ext directory, creating a .keyfile and
adding the connector in server.xml?  Am I missing something?  I read
through some of the docs sun provides with JSSE and it mentions adding
some information to java.security.  I tried that without success.  Can
anyone tell me if they can think of any steps that I might have missed?
I am going crazy.  
Best regards to all, Aaron


-Original Message-
From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 1:43 AM
To: Tomcat Users List
Subject: Re: Enabling SSL in tomcat


Hi Ajay,

I also faced similar problem when tried to configure SSL on tomcat,
then
tried what 'J' told, but due to Java's security permission for file
reading
in local device's tomcat was possing a different 'IO Exception error'. I
finally had it running after a work around, that is.

I copied the '.keystore' file from the 'winnt\profiles\..' to the
'winnt\profiles\default user'. Now my configuration works in perfect
shape.

Thanks for an intersting question.

Regards
H.Rajesh
[EMAIL PROTECTED]
SoftSolutions Pvt. Ltd.,
Chennai, India.




- Original Message -
From: "Joaquín Sánchez Jiménez" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 12:58 PM
Subject: Re: Enabling SSL in tomcat


Hi:

Try with this.
















Bye.

J.

- Original Message -
From: "Ajay Chauhan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 9:09 AM
Subject: Enabling SSL in tomcat


> I am facing one problem while enabling SSL in Tomcat on windows NT
server.
I
> have created the keystore using the following command:
>
> keytool -genkey -alias tomcat -keyalg RSA
>
> using changeit password. It has created .keystore file in 
> directory. Say if my login is ajay then the files is created in :
> C:\WINNT\Profiles\ajay directory, which is the value of
> System.getProperty("user.home").
>
> However when I start the Tomcat server, the jvm.stderr log files show
the
> following error and tomcat does not start:
>
> java.io.FileNotFoundException: C:\WINNT\Profiles\Default
User\.keystore
(The
> system cannot find the file specified)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.(Unknown Source)
> at
>
org.apache.tomcat.net.SSLSocketFactory.initKeyStore(SSLSocketFactory.jav
a:22
> 0)
> at
>
org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFactory.java:1
60)
> at
>
org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocketFactory.jav
a:11
> 8)
> at
>
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.
java
> :239)
> at
>
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:1
88)
> at
> org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
>
> This problem does not appear in Windows NT Workstation. In the
workstation
> the  property is the same as required by the Tomcat server
at
run
> time.
>
> If anyone face the same problem earlier and have the solution please
reply
> ASAP.
>
> Regards,
> Ajay
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>



--
To 

RE: Enabling SSL in tomcat

2002-05-22 Thread Rutledge, Aaron


Hello,
I keep seeing the topic of SSL configuration come up, but I have yet
heard anyone with a simmilar problem as mine.  I am surprised this can
be so problematic since it seems so straight forward. 

I tried using Joaquin's example and got the same exception...

StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw
exception
java.lang.IllegalStateException
at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.ja
va:159)

Anyone have any idea why the connector would throw this kind of
exception?  As soon as I remove the connector Tomcat loads fine.  Here
is my current connector configuration in server.xml...















I also received the same exception using the example configuration.  I
wish I at least knew where to start looking.  I've read over the How To
a million times.  Is it as simple as adding the jcert.jar, jnet.jar,
jsse.jar files to the jre/lib/ext directory, creating a .keyfile and
adding the connector in server.xml?  Am I missing something?  I read
through some of the docs sun provides with JSSE and it mentions adding
some information to java.security.  I tried that without success.  Can
anyone tell me if they can think of any steps that I might have missed?
I am going crazy.  
Best regards to all, Aaron


-Original Message-
From: Rajesh Harikrishnan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 1:43 AM
To: Tomcat Users List
Subject: Re: Enabling SSL in tomcat


Hi Ajay,

I also faced similar problem when tried to configure SSL on tomcat,
then
tried what 'J' told, but due to Java's security permission for file
reading
in local device's tomcat was possing a different 'IO Exception error'. I
finally had it running after a work around, that is.

I copied the '.keystore' file from the 'winnt\profiles\..' to the
'winnt\profiles\default user'. Now my configuration works in perfect
shape.

Thanks for an intersting question.

Regards
H.Rajesh
[EMAIL PROTECTED]
SoftSolutions Pvt. Ltd.,
Chennai, India.




- Original Message -
From: "Joaquín Sánchez Jiménez" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 12:58 PM
Subject: Re: Enabling SSL in tomcat


Hi:

Try with this.
















Bye.

J.

- Original Message -
From: "Ajay Chauhan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 9:09 AM
Subject: Enabling SSL in tomcat


> I am facing one problem while enabling SSL in Tomcat on windows NT
server.
I
> have created the keystore using the following command:
>
> keytool -genkey -alias tomcat -keyalg RSA
>
> using changeit password. It has created .keystore file in 
> directory. Say if my login is ajay then the files is created in :
> C:\WINNT\Profiles\ajay directory, which is the value of
> System.getProperty("user.home").
>
> However when I start the Tomcat server, the jvm.stderr log files show
the
> following error and tomcat does not start:
>
> java.io.FileNotFoundException: C:\WINNT\Profiles\Default
User\.keystore
(The
> system cannot find the file specified)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.(Unknown Source)
> at
>
org.apache.tomcat.net.SSLSocketFactory.initKeyStore(SSLSocketFactory.jav
a:22
> 0)
> at
>
org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFactory.java:1
60)
> at
>
org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocketFactory.jav
a:11
> 8)
> at
>
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.
java
> :239)
> at
>
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:1
88)
> at
> org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
>
> This problem does not appear in Windows NT Workstation. In the
workstation
> the  property is the same as required by the Tomcat server
at
run
> time.
>
> If anyone face the same problem earlier and have the solution please
reply
> ASAP.
>
> Regards,
> Ajay
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Enabling SSL in tomcat

2002-05-22 Thread Rajesh Harikrishnan

Hi Ajay,

I also faced similar problem when tried to configure SSL on tomcat, then
tried what 'J' told, but due to Java's security permission for file reading
in local device's tomcat was possing a different 'IO Exception error'. I
finally had it running after a work around, that is.

I copied the '.keystore' file from the 'winnt\profiles\..' to the
'winnt\profiles\default user'. Now my configuration works in perfect shape.

Thanks for an intersting question.

Regards
H.Rajesh
[EMAIL PROTECTED]
SoftSolutions Pvt. Ltd.,
Chennai, India.



- Original Message -
From: "Joaquín Sánchez Jiménez" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 12:58 PM
Subject: Re: Enabling SSL in tomcat


Hi:

Try with this.
















Bye.

J.

- Original Message -
From: "Ajay Chauhan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 9:09 AM
Subject: Enabling SSL in tomcat


> I am facing one problem while enabling SSL in Tomcat on windows NT server.
I
> have created the keystore using the following command:
>
> keytool -genkey -alias tomcat -keyalg RSA
>
> using changeit password. It has created .keystore file in 
> directory. Say if my login is ajay then the files is created in :
> C:\WINNT\Profiles\ajay directory, which is the value of
> System.getProperty("user.home").
>
> However when I start the Tomcat server, the jvm.stderr log files show the
> following error and tomcat does not start:
>
> java.io.FileNotFoundException: C:\WINNT\Profiles\Default User\.keystore
(The
> system cannot find the file specified)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.(Unknown Source)
> at
>
org.apache.tomcat.net.SSLSocketFactory.initKeyStore(SSLSocketFactory.java:22
> 0)
> at
>
org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFactory.java:160)
> at
>
org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocketFactory.java:11
> 8)
> at
>
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
> :239)
> at
>
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
> at
> org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
>
> This problem does not appear in Windows NT Workstation. In the workstation
> the  property is the same as required by the Tomcat server at
run
> time.
>
> If anyone face the same problem earlier and have the solution please reply
> ASAP.
>
> Regards,
> Ajay
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Enabling SSL in tomcat

2002-05-16 Thread t . riteshmenon

Ajay,

I think you can specify a certain keystore like

keytool -genkey -alias tomcat -keyalg RSA -keystore somekeystore 

& instruct tomcat to look up for this particular keystore by
modifying the server.xml(dont remember the syntax exactly)

If you do not provide the keystore parameter, it automatically creates
under your home dir. Also if u login on the NT workstation with 
someone elses credentials, it might still crib. I was curious to check
it out, but somehow missed it.

Hope it helps

Ritesh

-Original Message-
From: Ajay Chauhan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 12:39 PM
To: Tomcat Users List
Subject: Enabling SSL in tomcat


I am facing one problem while enabling SSL in Tomcat on windows NT server. I
have created the keystore using the following command:

keytool -genkey -alias tomcat -keyalg RSA

using changeit password. It has created .keystore file in 
directory. Say if my login is ajay then the files is created in :
C:\WINNT\Profiles\ajay directory, which is the value of
System.getProperty("user.home").

However when I start the Tomcat server, the jvm.stderr log files show the
following error and tomcat does not start:

java.io.FileNotFoundException: C:\WINNT\Profiles\Default User\.keystore (The
system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(Unknown Source)
at
org.apache.tomcat.net.SSLSocketFactory.initKeyStore(SSLSocketFactory.java:22
0)
at
org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFactory.java:160)
at
org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocketFactory.java:11
8)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

This problem does not appear in Windows NT Workstation. In the workstation
the  property is the same as required by the Tomcat server at run
time.

If anyone face the same problem earlier and have the solution please reply
ASAP. 

Regards,
Ajay







--
To unsubscribe, e-mail:

For additional commands, e-mail:


This message contains privileged and confidential information and is
intended only for the individual named.If you are not the intended recipient
you should not disseminate,distribute,store,print, copy or deliver this
message.Please notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.E-mail
transmission cannot be guaranteed to be secure or error-free as information
could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or
contain viruses.The sender therefore does not accept liability for any
errors or omissions in the contents of this message which arise as a result
of e-mail transmission. If verification is required please request a
hard-copy version.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Enabling SSL in tomcat

2002-05-16 Thread Joaquín Sánchez Jiménez

Hi:

Try with this.
















Bye.

J.

- Original Message - 
From: "Ajay Chauhan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 9:09 AM
Subject: Enabling SSL in tomcat


> I am facing one problem while enabling SSL in Tomcat on windows NT server. I
> have created the keystore using the following command:
> 
> keytool -genkey -alias tomcat -keyalg RSA
> 
> using changeit password. It has created .keystore file in 
> directory. Say if my login is ajay then the files is created in :
> C:\WINNT\Profiles\ajay directory, which is the value of
> System.getProperty("user.home").
> 
> However when I start the Tomcat server, the jvm.stderr log files show the
> following error and tomcat does not start:
> 
> java.io.FileNotFoundException: C:\WINNT\Profiles\Default User\.keystore (The
> system cannot find the file specified)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.(Unknown Source)
> at
> org.apache.tomcat.net.SSLSocketFactory.initKeyStore(SSLSocketFactory.java:22
> 0)
> at
> org.apache.tomcat.net.SSLSocketFactory.initProxy(SSLSocketFactory.java:160)
> at
> org.apache.tomcat.net.SSLSocketFactory.createSocket(SSLSocketFactory.java:11
> 8)
> at
> org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
> :239)
> at
> org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
> at
> org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
> 
> This problem does not appear in Windows NT Workstation. In the workstation
> the  property is the same as required by the Tomcat server at run
> time.
> 
> If anyone face the same problem earlier and have the solution please reply
> ASAP. 
> 
> Regards,
> Ajay
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
>