File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes How to work with self-signed certificate with jax-ws Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to work with self-signed certificate with jax-ws" Watch "How to work with self-signed certificate with jax-ws" New topic
Author

How to work with self-signed certificate with jax-ws

Navneet Singh
Greenhorn

Joined: Aug 19, 2007
Posts: 29

I'm able to check the authentication with jax-ws 2.0 when hitting on "localhost". I've created a certificate with cn=localhost and able to run my jax-ws client (no problem at all). But, when i'm creating with other than localhost (i.e cn=somedomain). I'm not able to connect to the web service and exception as : "https hostname is wrong it should be <somedomain> "
Does anyone help me out. I'm using netbeans 5.5,jax-ws 2.0,tomcat 5.5.
it's not working with other than localhost, when creating self-signed certificate. Any idea ??

in advance thanks...


SCJP 1.4
SCWCD
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to work with self-signed certificate with jax-ws