在客户端身份验证中使用Java Webstart时,如何隐藏密钥库密码提示? [英] How to suppress the keystore password prompt when using Java Webstart with client auth?

查看:161
本文介绍了在客户端身份验证中使用Java Webstart时,如何隐藏密钥库密码提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将Java Webstart与使用客户端身份验证的https服务器一起使用时,是否可以抑制密码提示?我想这样做,因为网络启动的应用程序在没有键盘且在信息亭模式下运行的触摸屏设备上运行.因此,从密钥库中删除密码或将其存储在某个地方就足够了,也许在启动该应用程序的桌面快捷方式中即可.

Is there a way to suppress the password prompt when using Java Webstart with a https server that uses client authentication? I would like to do this, because the webstarted app runs on a touch screen device that got no keyboard and runs in a kiosk mode. Therefore it would be sufficient to either remove the password from the keystore or to store it somewhere, maybe in the desktop shortcut that starts the app.

我已经尝试过将JVM参数附加到这样的快捷方式上,但是它不起作用:

I already tried to attach a JVM Parameter to the shortcut like this, but it doesn't work:

javaws -J-Djavax.net.ssl.keyStorePassword=mypass https://...

我还发现,当我激活Java控制面板中的使用浏览器密钥库"选项并向其中添加证书时,我可以取消密码提示,并且仍然可以成功连接.似乎只有Java-Keystore要求输入密码,而Internet-Explorer不需要.

I also found out, when I activate the "use browser keystore"-option in the Java Control Panel and add the certificate to it, I can cancel the password prompt and still connect successfully. It seems like only the Java-Keystore asks for a password and Internet-Explorer's doesn't.

推荐答案

您尝试使用自定义KeystoreProvider实现.创建起来并不难,我认为您可以覆盖密码的需要.您将需要自定义用于启动Webstart应用程序的JRE的security.properties.

You try to use a custom KeystoreProvider implementation. It is not that hard to create and I assume that you could override the need for the password. You will need to customize the security.properties of the JRE that is used to launch the webstart application.

尽管就您而言... ...您是否有不想使用浏览器密钥库的原因?在这种情况下,您没有问题.

Although in your case ... is there a reason why you don't want to use the browser keystore ? In that case you don't have a problem.

大卫

这篇关于在客户端身份验证中使用Java Webstart时,如何隐藏密钥库密码提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆