wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes https connection added cert still getting exception please help? 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 » Sockets and Internet Protocols
Bookmark "https connection added cert still getting exception please help?" Watch "https connection added cert still getting exception please help?" New topic
Author

https connection added cert still getting exception please help?

steve labar
Ranch Hand

Joined: Sep 10, 2008
Posts: 55
So, i have tried everything i can possibly think of and still i'm not able to establish a connection with a website. So here is a brief description of the problem with code,errors,etc. I have added my cert by using the popular InstallCert.java i found online. It created a file called jssecacerts. this is commandline response from program and everthing has seemed to work great!

I then attempt to connect with this code:



I get this error:


Error connecting: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching console.whitey.com found


Please i have added the cert connected and still having no luck! Any ideas to try and/or what the problem could be would be very helpful!
[ September 10, 2008: Message edited by: steve labar ]
T.A. Nguyen
Ranch Hand

Joined: Sep 02, 2008
Posts: 36

It look like your CN=console02.wh.prod is not console.whitey.com, certificate not being issued to the correct domain? You should check on that.

When generate keystore file, the first question should be the domain of the CAS server, for you it should be: [console.whitey.com]

What is your first and last name?
[Unknown]: console.whitey.com


Originally posted by steve labar:
...

1 Subject EMAILADDRESS=noc@console02.wh.prod, CN=console02.wh.prod, OU=Network Operations, O="Whitey, Inc.", L=Santa Clara, ST=California, C=US
Issuer EMAILADDRESS=noc@whitey.com, CN=Whitey CA, OU=Certificate Authority, O="Whity, Inc.", L=Santa Clara, ST=California, C=CA

...

Error connecting: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching console.whitey.com found



T.A. Nguyen
http://ta.cnci.org
http://www.linkedin.com/in/nguyenta
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: https connection added cert still getting exception please help?