Topic: Java如何与要求提供客户端证书的HTTPS服务器会话?

  Print this page

1.Java如何与要求提供客户端证书的HTTPS服务器会话? Copy to clipboard
Posted by: wonght
Posted on: 2004-12-14 11:03

Java如何与要求提供客户端证书的HTTPS服务器会话?
所有资料都说服务器端只要((SSLServerSocket)server).setNeedClientAuth(true);就可以了,那么后面怎么办呢?
这种情况对浏览器来讲会弹出请求客户端证书的,但是要用Java代码来实现该如何做?Server端具体如何响应?

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

2.Re:Java如何与要求提供客户端证书的HTTPS服务器会话? [Re: wonght] Copy to clipboard
Posted by: floater
Posted on: 2004-12-14 23:14

search here, I posted some code a while ago.

3.Re:Java如何与要求提供客户端证书的HTTPS服务器会话? [Re: floater] Copy to clipboard
Posted by: wonght
Posted on: 2004-12-15 01:20

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,谢~!

4.Re:Java如何与要求提供客户端证书的HTTPS服务器会话? [Re: wonght] Copy to clipboard
Posted by: floater
Posted on: 2004-12-15 01:29

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.

5.收到~!多谢 [Re: wonght] Copy to clipboard
Posted by: wonght
Posted on: 2004-12-15 01:43

我已经找到那部分代码了,感谢floater的帮助:)


   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