客户端:
    SSLSocket socket
       = (SSLSocket) factory.createServerSocket("127.0.0.1",111);
    处应改为:
    SSLSocket socket
       = (SSLSocket) factory.createSocket("127.0.0.1",111);
粗心之处,请见谅!

解决方案 »

  1.   

    it means that you need to obtain the certificate with IE, export the certificate from IE, and import the certificate into the keystore of server.Here's how you do it:Using Internet Explorer, open up the site indicated in the error log. 
    Double click on the lock icon in the browser window (bottom, right hand side). 
    Select the "Install Certificate..." button under the Certificate window General tab. 
    Make note of the Certification Path and click OK. 
    Then left click on IE:Tools-->Internet Options..., select the Content tab and select the Certificates... button. 
    Search through the tabs to find the certificate you just installed and select export. 
    A Certificate Export Wizard appears and assists you with the format. Select the Base-64 encoded X.509 (.CER) format. 
    Then ftp (or other means) to the Solaris machine and follow the directions in the tech note to import the certificate into the Restart server
      

  2.   

    javax.net.ssl.SSLException: untrusted server cert chain
    的意思是你的服务器应该有一个可以信任的证书。解决办法你可以在
    http://www.google.com里输入untrusted server cert chain搜索一下有很多
    答案的。
      

  3.   

    To zfluo(haha) :
       文件导出来了,怎么让文件和程序关联起来?