tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joaquín Sánchez Jiménez <qu...@fi2net.com>
Subject Re: Enabling SSL in tomcat
Date Wed, 15 May 2002 07:28:58 GMT
Hi:

Try with this.
<Connector className="org.apache.tomcat.service.PoolTcpConnector">

<Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler"/>

<Parameter name="port" value="8443"/>

<Parameter name="socketFactory" value="org.apache.tomcat.net.SSLSocketFactory" />

<Parameter name="keystore" value="C:\WINNT\Profiles\ajay\.keystore" />

<Parameter name="keypass" value="xxxxxxxx" />

</Connector>



Bye.

J.

----- Original Message ----- 
From: "Ajay Chauhan" <ajayc@india.infogain.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
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 <user.home>
> 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.<init>(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 <user.home> 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:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
> 
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message