How to programmatically access ssl urls in WebSphere?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere HTTP Server > How to programmatically access ssl urls in WebSphere?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How to programmatically access ssl urls in WebSphere?  
Marcus Leon


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-21-04 04:33 PM

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





[ Post a follow-up to this message ]



robgray is offline     Re: How to programmatically access ssl urls in WebSphere?  
robgray


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for robgray Click here to Send robgray a Private Message Find more posts by robgray Add robgray to your buddy list
 
05-14-04 12:36 PM

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




[ Post a follow-up to this message ]



axb is offline     Re: How to programmatically access ssl urls in WebSphere?  
axb


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for axb Click here to Send axb a Private Message Find more posts by axb Add axb to your buddy list
 
06-09-04 05: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 requir
ed from the JCE (security providers, google is your friend)
c) IF the certificate the SSL site is using is untrusted, that certificate m
ust be loaded into the JRE/security/cacerts file, easiest way is to create o
ne anew with ikeyman, then import the certificate.

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

Cheers,
andy.




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:51 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register