我已經有.NET(c#) 的SSL server,我如何撰寫使用java的client side
網路上的範client side都很容易,就只是…
SSLSocketFactory factory=(SSLSocketFactory)SSLSocketFactory.getDefault();
Socket s=factory.createSocket("localhost",port);
可是我直這樣使用,是無法連上的,兩邊都出現error
java: javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
C#:就只有不明的錯誤
請問有誰有同樣的開發經驗,可以教我如何才能完成這個需求,感謝!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 42.75.211.188
→
08/28 16:18, , 1F
08/28 16:18, 1F
→
08/28 16:19, , 2F
08/28 16:19, 2F
→
08/28 16:20, , 3F
08/28 16:20, 3F
推
08/28 16:26, , 4F
08/28 16:26, 4F
→
08/28 16:26, , 5F
08/28 16:26, 5F
推
08/28 22:06, , 6F
08/28 22:06, 6F