This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Web Services and the fly likes SSL Clarification Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "SSL Clarification" Watch "SSL Clarification" New topic
Author

SSL Clarification

Rafael Angarita
Ranch Hand

Joined: Jan 09, 2009
Posts: 67
Hello,

I have an application in a local GlassFish instance trying to access a web service in a remote GlassFish server. I get this exception:



Therefore, I run a little program to get the certificate of the remote server and then, I import it into the local GlassFish truststore cacerts.jks and then, I get this exception:



I think I'm doing something wrong.

Any ideas? Please help!

Thank you very much.


Rafael Angarita.
SCJP 6.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
If you only have a plain web application in a GlassFish server that tries to access a web service in some other container, then there should be no need for keystores and certificates.
Are you trying to apply some security to the communication to/from the web service?
In my SCDJWS study notes, I have examples of plain SSL and SSL with mutual authentication. If you haven't seen it already, do take a look at: http://faq.javaranch.com/content/Exam-Objectives-5.pdf
Best wishes!
Rafael Angarita
Ranch Hand

Joined: Jan 09, 2009
Posts: 67
Hi Ivan! Thank you for your reply!

Yes, I'm trying to use SSL with mutual authentication. I have been following your tutorial and everything worked perfectly fine when I had my web service and client both deployed in my local GlassFish instance.

Now, I deployed one of my web servicer to an Ubuntu machine and I'm getting that error.

I don't know what to do. There is not much documentation about it.


Thank you again.

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Interesting problem, I will see if I have some time to set up a virtual machine and try it out myself. Can't promise anything, though.
Best wishes!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SSL Clarification