有多少 SSL System.setProperty() 选项在 Android 上不起作用
很明显
- System.setProperty("javax.net.debug", "SSL");
不适用于 Android。人们使用它并且不会出现任何错误。没有关于什么有效、什么无效的文档。只有尝试一下,然后发现什么也没有发生,你才能发现答案。 还有哪些其他与 SSL 相关的标准 System.setProperty() 方法不起作用? 显然这些不起作用
- System.setProperty("javax.net.ssl.trustStore", trustStoreFileName);
- System.setProperty("javax.net.ssl.keyStore", keyStoreFileName);
- System.setProperty("javax.net.ssl.keyStorePassword", 密钥库密码);
- System.setProperty("javax.net.ssl.trustStorePassword", 信任商店密码);
因为如果他们这样做了,就不会有 Android 用户在本论坛中表现出的对证书和密钥库的所有不满。 这个属性可能也不起作用,但我不确定。
- System.setProperty("javax.net.ssl.keyStoreType", "BKS");
有谁知道在 Android 上运行的与 SSL 相关的属性方法列表是什么?也许没有?
Its pretty clear that
- System.setProperty("javax.net.debug", "SSL");
does not work on Android. One uses it and gets no error. There is no documentation about what works and what doesn't. One only finds out by simply trying it and seeing that nothing happens.
What other standard SSL-related System.setProperty() methods don't work?
Clearly these don't work
- System.setProperty("javax.net.ssl.trustStore", trustStoreFileName);
- System.setProperty("javax.net.ssl.keyStore", keyStoreFileName);
- System.setProperty("javax.net.ssl.keyStorePassword",
keyStorePassword); - System.setProperty("javax.net.ssl.trustStorePassword",
trustStorePassword);
for if they did there would not be all the frustrations with certificates and keystores that Android users have shown in this forum.
This property may not work either, but I am not sure.
- System.setProperty("javax.net.ssl.keyStoreType", "BKS");
Does anyone know just what the list of SSL-related property methods that DO work on Android are? Perhaps none?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论