BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

jb05 https deployment

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE
View previous topic :: View next topic  
Author Message
cpanon
Guest





PostPosted: Thu Mar 01, 2007 6:06 am    Post subject: jb05 https deployment Reply with 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.
Back to top
Paul Nichols[TeamB]
Guest





PostPosted: Thu Mar 01, 2007 9:14 am    Post subject: Re: jb05 https deployment Reply with quote



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





PostPosted: Thu Mar 01, 2007 6:55 pm    Post subject: Re: jb05 https deployment Reply with quote



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





PostPosted: Thu Mar 01, 2007 10:49 pm    Post subject: Re: jb05 https deployment Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.