• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Java client calling ssl web service on WAS7

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. I am trying to develop a simple standalaone java app which makes a call to a web service secured by ssl on WAS7. Initially I was getting the exception java.lang.ClassNotFoundException: com.ibm.websphere.ssl.protocol.SSLSocketFactory. After following advice here I added following two lines of code to my app

Then i got the exception

I then created a self signed certificate for the WAS7 on which the web service is deployed using ikeyman.bat as specified here and added the following line of code to my app to point to the certificate:

I am now getting the exception:

Any ideas where I am going wrong?
 
vik ar
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have changed my client as follows (note - client and server are on same host)

Now I am getting the same issue as before - The certificate issued by ... is not trusted?
 
vik ar
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
solution here: http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14253079
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic