| View previous topic :: View next topic |
| Author |
Message |
cpanon Guest
|
Posted: Thu Mar 01, 2007 6:06 am Post subject: jb05 https deployment |
|
|
Hello
I am trying to bring up tomcat 5.x w/https enabled in the ide. I have
edited the server.xml for all locations of 8443 in elements and replaced
with my new adhoc https port 21443. I have turned off the development
pc's firewall. I created a keystore in the default location for win2k
with an alias of tomcat. When I try to access with https url on the
proper port it fails. Can someone help direct on:
1. Where do I specify the keystore and alias/keystore password in
server.sml?
2. What more do I need to do to enable access and https? I have
authentication working, thanks to this group. I dont see why I
similarly cant get https working. tia. |
|
| Back to top |
|
 |
Paul Nichols[TeamB] Guest
|
Posted: Thu Mar 01, 2007 9:14 am Post subject: Re: jb05 https deployment |
|
|
cpanon wrote:
| Quote: | Hello
I am trying to bring up tomcat 5.x w/https enabled in the ide. I have
edited the server.xml for all locations of 8443 in elements and replaced
with my new adhoc https port 21443. I have turned off the development
pc's firewall. I created a keystore in the default location for win2k
with an alias of tomcat. When I try to access with https url on the
proper port it fails. Can someone help direct on:
1. Where do I specify the keystore and alias/keystore password in
server.sml?
2. What more do I need to do to enable access and https? I have
authentication working, thanks to this group. I dont see why I
similarly cant get https working. tia.
|
You may try putting System.setProperty(">certInfo>") to make sure that
the path to the cert can be accessed. I know I had a great deal of
difficulty making this work in Tomcat and using System.setProperty is
the only way I could get this to work.
If you need more info, let me know. I will go and find the code and post
it here. |
|
| Back to top |
|
 |
Kevin Dean [TeamB] Guest
|
Posted: Thu Mar 01, 2007 6:55 pm Post subject: Re: jb05 https deployment |
|
|
cpanon wrote:
| Quote: | 1. Where do I specify the keystore and alias/keystore password in
server.sml?
2. What more do I need to do to enable access and https? I have
authentication working, thanks to this group. I dont see why I similarly
cant get https working. tia.
|
The server.xml file used by Tomcat in the IDE is stored in the Tomcat/conf
subdirectory under the project directory. The changes you need to make
are as follows:
1. Start the server.
2. Open Tomcat/conf/server8080.xml in your project and delete the comment
line.
3. Stop the server.
4. Copy the keystore file to the Tomcat/conf directory (optional; I
generally prefer not to use the global keystore for this).
5. Add the following connector (replace "/projects/MyProject" with the
path to your project and set the port to the same redirect port you
defined in the non-SSL connector):
<!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
port="8443" minProcessors="5" maxProcessors="75"
enableLookups="true"
acceptCount="10" debug="0" scheme="https" secure="true"
useURIValidationHack="false">
<Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
clientAuth="false" protocol="TLS"
keystoreFile="/projects/MyProject/Tomcat/conf/.keystore" keystorePass="tomcat" />
</Connector>
This is based on a working example I have on a development server, not one
integrated into the JBuilder IDE. Please let me know if you can get this
to work; if not, I'll dig into it a little deeper.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html |
|
| Back to top |
|
 |
cpanon Guest
|
Posted: Thu Mar 01, 2007 10:49 pm Post subject: Re: jb05 https deployment |
|
|
Hi Paul
Thanks. I would really like to pursue this to functionality. Being able
to make the authentication work was very productive.
Where can I put that System.setProperty(>"certInfo") and is that the
full syntax? Doesnt it need a name/value style of syntax? Also
shouldnt the keystore location and alias/password be put in server.xml
for the tomcat server version configured in the IDE? tia.
Paul Nichols[TeamB] wrote:
| Quote: | cpanon wrote:
Hello
I am trying to bring up tomcat 5.x w/https enabled in the ide. I have
edited the server.xml for all locations of 8443 in elements and
replaced with my new adhoc https port 21443. I have turned off the
development pc's firewall. I created a keystore in the default
location for win2k with an alias of tomcat. When I try to access with
https url on the proper port it fails. Can someone help direct on:
1. Where do I specify the keystore and alias/keystore password in
server.sml?
2. What more do I need to do to enable access and https? I have
authentication working, thanks to this group. I dont see why I
similarly cant get https working. tia.
You may try putting System.setProperty(">certInfo>") to make sure that
the path to the cert can be accessed. I know I had a great deal of
difficulty making this work in Tomcat and using System.setProperty is
the only way I could get this to work.
If you need more info, let me know. I will go and find the code and post
it here.
|
|
|
| Back to top |
|
 |
|