| 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
Bartender
Joined: Oct 04, 2006
Posts: 2193
|
|
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
Bartender
Joined: Oct 04, 2006
Posts: 2193
|
|
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!
|
 |
 |
|
|
subject: SSL Clarification
|
|
|