基于 Java EE 证书的相互身份验证
我正在尝试在我的 Java EE 应用程序中设置“基于证书的相互身份验证”。我的需求大纲如下,
部署一个 Web 应用程序(IBM Webshpere 上的 Java EE),该应用程序在 www 中公开可用,但仅通过证书向经过身份验证的客户端授予访问权限。
有人可以给我提供示例代码吗?我必须遵循的设置才能达到我的要求。
I'm trying to setup “Certificate-Based Mutual Authentication” in my Java EE application. My requirement outline as follows,
Deploying a web application (Java EE on IBM Webshpere) which is pulicly available in www, but access privileges were given only for authenticated clients via certificates.
Can someone provide me a sample code & setps that I have to follow to achieve my requirement.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如 Stas 提到的,您没有说明有关您的应用程序的任何信息(应用程序服务器是什么等)。
如果您的设置是 WebSphere 并且想要设置 SSL 相互身份验证,那么本文应该为您提供一个好主意:
http://www.ibm.com/developerworks/websphere/techjournal/0612_birk/0612_birk.html#sec1
本文中的参考文献也包含很好的信息,它们应该帮助你。
对于 Web 服务器,SSL 跃点将位于您的应用程序服务器和另一端的 Web 服务器之间(而不是运行的 WAS 服务器)。这不会更改任何配置或设置,但您应该知道,您的 SSL 通信将持续到 Web 服务器,并且 Web 服务器可能会与后端应用程序服务器进行 SSL 对话,这取决于它的设置方式。
如果您提供更多信息,那么这里的人们将能够提供帮助。
华泰
曼鲁
As Stas mentioned you haven't stated anything about your application (what is the app server etc).
If your set up is WebSphere and you want to set up SSL mutual authentication, then this paper should give you a good idea:
http://www.ibm.com/developerworks/websphere/techjournal/0612_birk/0612_birk.html#sec1
The references in this article also contain good information and they should help you out.
Regarding Web Server, SSL hops would be between your App Server and the web server on the other end (and not to the WAS Server running). This does not change any configuration or the set up but you should be aware that your SSL communication would be till the web server and the web server might talk SSL to the back end application server and this depends on how it is set up.
If you provide additional information then folks here would be able to help.
HTH
Manglu