Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Google URL Shortner API with weblogic 10.3.4

 
preeti vivek gupta
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am trying to use google url shortner API with weblogic 10.3.4 using google provided GSON.jar

I am getting following exception whenever my code runs in weblogic
javax.net.ssl.SSLKeyException: [Security:090477]Certificate chain received from www.googleapis.com - 74.125.93.95 was not trusted causing SSL handshake failure.
at com.certicom.tls.interfaceimpl.TLSConnectionImpl.fireException(Unknown Source)

I am connecting to https://www.googleapis.com/urlshortener/v1/url URL. I tried exporting certificate given here.
And adding that in DemoTrust.jks in weblogic. But it still fails.

Also I have junit testcases to test this. They are working fine. Junit tests use jdk 1.6

Thanks for the help,

Preeti
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure your domain looks into DemoCert to retrieve the list of trusted CAs ?
 
preeti vivek gupta
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for replying.
I didn't change default settings. I think it looks into Democert
 
German Gonzalez-Morris
Ranch Hand
Posts: 263
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just like the message says: [Security:090477]Certificate chain received from www.googleapis.com - 74.125.93.95 was not trusted causing SSL handshake failure.


probably googleapi is using his own CA that your WLS doesn't trust.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic