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 etc... main, WRITE: SSL v2, contentType = 22, translated length = 16310
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.
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