aspose file tools*
The moose likes BEA/Weblogic and the fly likes Google URL Shortner API with weblogic 10.3.4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Google URL Shortner API with weblogic 10.3.4" Watch "Google URL Shortner API with weblogic 10.3.4" New topic
Author

Google URL Shortner API with weblogic 10.3.4

preeti vivek gupta
Greenhorn

Joined: Jan 13, 2012
Posts: 5
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

Joined: Feb 24, 2006
Posts: 6662
    
    5

Are you sure your domain looks into DemoCert to retrieve the list of trusted CAs ?


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
preeti vivek gupta
Greenhorn

Joined: Jan 13, 2012
Posts: 5
Thanks for replying.
I didn't change default settings. I think it looks into Democert
German Gonzalez-Morris
Ranch Hand

Joined: Nov 16, 2009
Posts: 191

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.


http://devwebcl.blogspot.com/
 
Consider Paul's rocket mass heater.
 
subject: Google URL Shortner API with weblogic 10.3.4