当前页面: 开发资料首页 → J2ME 专题 → 有谁在MIDP2.0使用SSL测试通过?
有谁在MIDP2.0使用SSL测试通过?
摘要: 有谁在MIDP2.0使用SSL测试通过?
有谁在 MIDP2.0 使用 SSL (非HTTPS) 测试通过?能否给段示例代码?
我用SecureConnection sc = (SecureConnection)Connector.open("ssl://server:port")
总是报错:
javax.microedition.pki.CertificateException: Certificate was issued by an unrecognized entity
at com.sun.midp.ssl.X509Certificate.verifyChain(+67)
at com.sun.midp.ssl.Handshake.parseChain(+121)
at com.sun.midp.ssl.Handshake.rcvCert(+117)
at com.sun.midp.ssl.Handshake.doHandShake(+96)
at com.sun.midp.ssl.SSLStreamConnection.
(+157)
at ...
谢谢!
是你的WTK设置问题吧
如何设置?