Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Java Security  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Java如何与要求提供客户端证书的HTTPS服务器会话?
wonght





发贴: 8
积分: 1
于 2004-12-14 11:03 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Java如何与要求提供客户端证书的HTTPS服务器会话?
所有资料都说服务器端只要((SSLServerSocket)server).setNeedClientAuth(true);就可以了,那么后面怎么办呢?
这种情况对浏览器来讲会弹出请求客户端证书的,但是要用Java代码来实现该如何做?Server端具体如何响应?

哪位大虾来解惑一下,多谢~!



作者 Re:Java如何与要求提供客户端证书的HTTPS服务器会话? [Re:wonght]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2004-12-14 23:14 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
search here, I posted some code a while ago.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:Java如何与要求提供客户端证书的HTTPS服务器会话? [Re:floater]
wonght





发贴: 8
积分: 1
于 2004-12-15 01:20 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
floater wrote:
search here, I posted some code a while ago.

floater,你的意思是是否指[如何获取服务商Https的内容]
http://www.cjsdn.net/post/view?bid=6&id=123656&sty=1&tpg=1&age=0

这个帖子里的代码?大概看了一下,如果有此功能,那就是我还没参透,再细看看。如果不是,还请告知link,谢~!



作者 Re:Java如何与要求提供客户端证书的HTTPS服务器会话? [Re:wonght]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2004-12-15 01:29 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
yes, you can set the client and the server certs, using that piece of code. You just pass in the client/server cert files or streams(they have to be in the correct format, for this matter, you need to search another piece of code in here to see how to convert a p12/pfx format to the jks format.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 收到~!多谢 [Re:wonght]
wonght





发贴: 8
积分: 1
于 2004-12-15 01:43 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我已经找到那部分代码了,感谢floater的帮助:)



flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923