This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 6661
    
    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: 160

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/
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Google URL Shortner API with weblogic 10.3.4
 
Similar Threads
JUNIT to test EJB
Can't access EJB from remote client
WebLogic 10.3.4 - Cache Issue
Weblogic 10.3.4 clustered JMS
Using HttpURLConnection.getInputStream() in weblogic