How to make NT Service for Tomcat(for HTTPS)

Hi all,Could u pls tell me how to make or configured NT service for tomcat for Https or SSL enabled. Pls provide configuration document if possible.
[169 byte] By [gabriel_kardos] at [2008-2-7]
# 1

you need to change the server.xml file ....

<!--

You _need_ to set up a server certificate if you want this

to work, and you need JSSE.

1. Add JSSE jars to CLASSPATH

2. Edit java.home/jre/lib/security/java.security

Add:

security.provider.2=com.sun.net.ssl.internal.ssl.Provider

3. Do: keytool -genkey -alias tomcat -keyalg RSA

RSA is essential to work with Netscape and IIS.

Use "changeit" as password. ( or add keypass attribute )

You don't need to sign the certificate.

You can set parameter keystore and keypass if you want

to change the default ( user.home/.keystore with changeit )

-->

<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="keypass" value="Passw0rd"/>

<Parameter name="clientAuth" value="false"/>

</Connector>

canmanjoe at 2007-7-1 > top of java,Security,Java Secure Socket Extension (JSSE)...
# 2

Hi,

I knew this thing. I made tomcat as SSL enabled that is able to listen to 8443 port.

But my need is for the same How to make a NT service so that when i send https request it should handle that request through service without starting tomcat console. I have made NT service for tomcat which handles http requests.

But How to make NT service for tomcat which can handle HTTPS request

Thanks & regards

gabriel_kardos at 2007-7-1 > top of java,Security,Java Secure Socket Extension (JSSE)...
# 3

had and solved this problem i was working with jakartas jk_nt service, if you've got tomcat set up properly to use JSSE and you've installed tomcat to run as a service try looking in the jvm.stderr logfile or wherever the output from the jvm is going to, I was getting an IOexception being logged which was extremley uninformative after some fiddling around i finally changed the service logon from the localSystem account to a specified account(i used the account i was currently logged into) on the system which somehow made it all work as it should the only cause i could think of was that changing the account must have made it able to access the keystore file which i'd set up and it wasn't able to load it before some one please correct me here if i'm wrong but i think all you need to do is change the logon for the service to an account which has access to the keystore file that you are using with tomcat.

I've never heard of a seperate set up for tomcat using JSSE/SSH as an NT service.

hope i've helped

Andy

andrewgent1 at 2007-7-1 > top of java,Security,Java Secure Socket Extension (JSSE)...