告诉java接受自签名证书(在某种程度上是重复的问题)
好吧,所以当我尝试通过 webmin 访问文件管理器时,它失败并抛出错误:
failed to get language list : javax.net.ssl.SSLHandshakeException : java.sucurity.cert.CertificateException: Java Could not信任服务器
所以,我读了一点,发现(我认为)我需要配置java来接受自签名证书。现在,
真的没有弄清楚任何事情,因为我真的不确定我们是否有同样的问题,或者我们的两个问题是否有相同的解决方案?所以,我想知道是否有人可以通过一些文章为我指出正确的方向,可能告诉我需要配置什么java(我假设它是VMware java?)
想法?
Alright, so when I attempt to access the file manager through webmin it fails and throws an error to the tune of:
failed to get language list : javax.net.ssl.SSLHandshakeException : java.sucurity.cert.CertificateException: Java couldn't trust server
So, I read a little bit and found out (I think) that I need to configure java to accept the self-signed certificate. Now,
telling java to accept self-signed ssl certificate
This really didn't clear anything up because I'm really not sure that we have the same problem, or if both our problems have the same solution? So, I was wondering if someone could point me in the right direction with some articles, possibly tell me what java I need to be configuring (I'm assuming that it is the VMware java?)
Thoughts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
那不是 Java 消息。您需要发布异常的实际消息,而不是应用程序编写的消息。 (永远不要这样做。)
要回答最初的问题,您所要做的就是将证书导入到客户端的信任库中。
请参阅此处了解无密钥工具的执行方式,感谢安德烈亚斯·斯特本茨。
That's not a Java message. You would need to post the actual message of the exception, not something made up by the application. (Never do that.)
To answer the original question, all you have to do is import the certificate into the client's truststore.
See here for a keytool-less way of doing it, with thanks to Andreas Sterbenz.