如何在 GlassFish 中启用可选客户端证书请求?
博客站点(GlassFish 中请求客户端身份验证) 内容如下:
In domain.xml, please add the following property to http-listener element
<property name="com.sun.grizzly.ssl.auth" value="want"/>
但是,在添加此内容时对于我的 GlassFish v3 domain.xml,不请求现有的浏览器客户端证书。 GlassFish 服务器已正确设置,即需要客户端证书并将“client-auth-enabled”选项设置为 true。
GlassFish bugtracker (1) 提到了一个不同的版本:
* client-auth: want/need/<blank>
但是,这个属性也没有被接受。
其他人也有同样的问题(2)。
如何在 GlassFish 中启用可选客户端证书请求?还有其他选择吗?
(1) http://java.net/jira/browse/GLASSFISH-6935
(2) https://stackoverflow.com/questions/3634129/configure -glassfish-v3-client-auth-requested-to-want
The Blog site (Client-Auth REQUESTED in GlassFish) reads:
In domain.xml, please add the following property to http-listener element
<property name="com.sun.grizzly.ssl.auth" value="want"/>
However, when adding this to my GlassFish v3 domain.xml, the existing browser client certificate is not requested. The GlassFish server is properly set up, i.e., requires client certificates with the option "client-auth-enabled" set to true.
The GlassFish bugtracker (1) mentions a different version:
* client-auth: want/need/<blank>
However, this property doesn't get accepted either.
Others have the same problem (2).
How can I enable an optional client certificate request in GlassFish? Are there alternatives?
(1) http://java.net/jira/browse/GLASSFISH-6935
(2) https://stackoverflow.com/questions/3634129/configure-glassfish-v3-client-auth-requested-to-want
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可能是因为它不存在。
*当您处理 HTTPS 中的客户端证书时,请记住您的 HTTPS 侦听器配置。 SSLv3/TLS 协议允许 HTTPS 套接字的三种模式。
*在现实世界中,无论用户是通过密码还是证书进行身份验证,您都希望使用相同的 HTTPS URL。此方法需要支持第三种可选客户端证书模式的服务器。在撰写本文时,GlassFish 应用程序服务器不支持此模式。幸运的是,OpenSSO 支持的 Apache Tomcat Web 服务器可以作为替代方案。供参考
Probably because it doesn't exist.
*When you deal with client certificates in HTTPS, keep in mind your HTTPS listener configurations. The SSLv3/TLS protocol allows three modes for an HTTPS socket.
*In the real world, you want to use the same HTTPS URL whether a user is authenticated by password or certificate. This approach requires a server that supports the third, optional client certificate mode. At this writing, the GlassFish application server does not support this mode. Fortunately, the Apache Tomcat web server, supported by OpenSSO, is available as an alternative. For Reference