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

您没有登录

» Java开发网 » Java Security  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 有关密钥的问题
njord



发贴: 0
积分: 0
于 2003-08-08 16:05 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
在.cer文件中包含有公钥,是否包含私钥?
如果没有,那么私钥一般放在哪里了呢?
我想调用私钥进行签名的话,怎么取到私钥呢?



作者 Re:有关密钥的问题 [Re:njord]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2003-08-08 22:35 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
It's in the browser's keystore.

When you export the cert to a cer file, browsers should ask you whether you want to export private key. If so, then cer has the private key.

check java.security.cert package.



"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:有关密钥的问题 [Re:njord]
njord



发贴: 0
积分: 0
于 2003-08-11 15:30 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.security.cert.Certificate类中只有getPublicKey方法获取公钥,私钥怎么获取呢?私钥是否不在cer文件中而是另外一个文件?


作者 Re:有关密钥的问题 [Re:njord]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2003-08-12 04:12 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
Here is a link that might help:

http://www.chinajavaworld.net/forum/topic.cgi?forum=29&topic=448&show=25



"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:有关密钥的问题 [Re:njord]
njord



发贴: 0
积分: 0
于 2003-08-13 12:42 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
他的私钥是存放在文件中的,用口令加密了。
大概私钥的存放方式都跟这个差不多吧。




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-2018 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号
客服电话 0592-8750026    客服信箱 714923@qq.com    客服QQ 714923