Weblogic 6.1 & SSL. Certificate SubjectDN CommonName received does not match server hostname
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, January 14, 2003 08:29 AM

Hi, I'm a learner whose first steps on weblogic are going pretty slow. I'm trying to wrap a web-app inside a SSL domain. I'm using weblogic's demo SSL (the certificates & the .pem) in the examples web-app. When I execute a HelloWorld.jsp using a https://localhost:7002/myapp/helloWorld.jsp everything goes OK. I'm developing a more complicated app that uses a Model View Controler (a jsp that makes dispatches & reads responses) problem is that when it tries to establish a connection (through an URLConnection)with another jsp to write to it, it crashes with an IOException: Certificate SubjectDN CommonName received does not match server hostname. I think it's trying to open an SSLSocket connection between the j   More>>

Hi, I'm a learner whose first steps on weblogic are going pretty slow. I'm trying to wrap a web-app inside a SSL domain. I'm using weblogic's demo SSL (the certificates & the .pem) in the examples web-app.

When I execute a HelloWorld.jsp using a https://localhost:7002/myapp/helloWorld.jsp everything goes OK.

I'm developing a more complicated app that uses a Model View Controler (a jsp that makes dispatches & reads responses) problem is that when it tries to establish a connection (through an URLConnection)with another jsp to write to it, it crashes with an IOException:

Certificate SubjectDN CommonName received does not match server hostname.

I think it's trying to open an SSLSocket connection between the jsp's and that's got trouble with it:

URL url = new URL(response.encodeURL("https://localhost:7002/myapp/" + op.getJsp()));
//basically op.getJsp() is the next jsp to perform

URLConnection uc = url.openConnection();

uc.setDoOutput(true);
uc.setUseCaches(false);

PrintStream outStream = new PrintStream(uc.getOutputStream());

outStream.print(p);
outStream.close();


Thanks a lot!!!!

   <<Less
About | Sitemap | Contact