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 ??