• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SSL -- Could not find trusted certificate

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can visit the web page with IE
--https://www.chinatrust.com.tw/cgi-bin/prod/jsp/ch/home/default.jsp
when I try to connect it with java , I get exception .
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException:
Could not find trusted certificate
JAVA CODE
-------------------------
URL u = new URL("https","www.chinatrust.com.tw","/cgi-bin/prod/jsp/ch/home/default.jsp");
InputStream is = u.openStream();
 
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am able to skirt around some SSL details by using this handy code:
http://jakarta.apache.org/commons/httpclient/
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try this link

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19298

Regards
 
reply
    Bookmark Topic Watch Topic
  • New Topic