• 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

can but cannot connect

Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The following program can read the contents of a https site from my local windows box but cannot from a solaris box, what could be the cause?

This only occurs for a particular website. Other sites I've tested there is no problem. The solaris box can read it just fine. I've also tested different jvms 1.3 and 1.4 and have used the same jnet.jar/jcert.jar/j22e.jar.

I've done a diff on both outputs and the only difference is:
1. all-> Key: com.sun.rsajca.JSA_RSAPublicKey@2c84d9
2. RandomCookie
3. Hash
4. The non-reading solaris box stops after:
main, WRITE: SSL v3.1 Handshake, length = 59
[write] MD5 and SHA1 hashes: len = 77
main, WRITE: SSL v2, contentType = 22, translated length = 16310

Any thoughts?

Thanks in advance.
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe you're missing the root certificate of the authority which issued the site's SSL certificate. Is there any difference in the CA certificate lists of the JDKs on both boxes? (jre/lib/security/cacerts, use keytool to inspect it).

You can use an ordinary web browser to inspect server certificates and the authority they chain to: just request a protected page and click on the lock icon that probably appears in your browser's status bar.

- Peter
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic