WebSphere HTTP Server - How to programmatically access ssl urls in WebSphere?

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere HTTP Server > June 2004 > How to programmatically access ssl urls in WebSphere?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to programmatically access ssl urls in WebSphere?
Marcus Leon

2004-04-21, 11:33 am

Hello - we are having a problem programmatically accessing a https url
within the WebSphere container - can anyone help us?

Situation:
-User makes Web request to our WebSphere app
-Code in session bean accesses a url using the URL Java class

Results:
-This works fine if the url we access is http - it just doesn't work
when we access the https url
-This code also works fine if we run it within a Java main method
outside of WebSphere and connect to a https or http url

We figure there is some WebSphere configuration required here. Does
anyone have any suggestions? Do we need to configure any SSL
parameters? Do we need to specify where any client SSL certificates
are?

Thanks, Marcus
robgray

2004-05-14, 7:36 am

Marcus !

I am having the exact same problem , did you every figure out what it was ?

Thanks

Robin

quote:
Originally posted by Marcus Leon
Hello - we are having a problem programmatically accessing a https url
within the WebSphere container - can anyone help us?

Situation:
-User makes Web request to our WebSphere app
-Code in session bean accesses a url using the URL Java class

Results:
-This works fine if the url we access is http - it just doesn't work
when we access the https url
-This code also works fine if we run it within a Java main method
outside of WebSphere and connect to a https or http url

We figure there is some WebSphere configuration required here. Does
anyone have any suggestions? Do we need to configure any SSL
parameters? Do we need to specify where any client SSL certificates
are?

Thanks, Marcus

axb

2004-06-09, 12:53 pm

[QUOTE]Originally posted by Marcus Leon
[B]Hello - we are having a problem programmatically accessing a https url
within the WebSphere container - can anyone help us?

For HTTPS to work from Java you need to
a) Install the JCE extensions in the JRE/ext folder.
b) Update the java.security file in JRE/security to contain the stuff required from the JCE (security providers, google is your friend)
c) IF the certificate the SSL site is using is untrusted, that certificate must be loaded into the JRE/security/cacerts file, easiest way is to create one anew with ikeyman, then import the certificate.

Reason I say this is the problem is that Ive just been testing HttpUnit using a form-secured (SSL) web app, and had to do all the above.

Cheers,
andy.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com