File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply 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: 3
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: 6371

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


SCJP 6 articles - SCJP 5/6 mock exams - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
preeti vivek gupta
Greenhorn

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

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/
 
IntelliJ Java IDE
 
subject: Google URL Shortner API with weblogic 10.3.4
 
Threads others viewed
WebLogic 10.3.4 - Cache Issue
Weblogic 10.3.4 clustered JMS
Using HttpURLConnection.getInputStream() in weblogic
JUNIT to test EJB
Can't access EJB from remote client
developer file tools