提取私钥信息 [英] Extract PrivateKey Information

查看:102
本文介绍了提取私钥信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在基于PKI的一个小项目上.
我还需要一些有关从数字签名中提取私钥的信息.

有什么方法可以从我已安装到浏览器中的自定义.p12/.pfx证书中提取私钥信息?

Google建议了一些使用openssl做到这一点的方法.但是我不确定如何使用它们.

我想对如何使用php/javascript从数字签名中获取privateKey信息提出一些建议.

我正在客户端计算机中寻找这些信息.我不是在谈论服务器端的信息.

Hi All,

I am working on a small project based on PKI.
And i needed some information about extracting the PrivateKey from the Digital Signature.

Is there any way in which i can extract the PrivateKey information from the custom .p12/.pfx Certificate i have installed into the browser ?

Google suggested a few methods of using openssl to do this. But I am not sure as how how i have to use them.

I would like some suggestion as to how I can get the privateKey information from the Digital Signature using php/javascript.

I am looking for these information in the client machine. I am not talking about the information in the Server side.

推荐答案

没办法.

如果您阅读并考虑了非对称加密,您将会理解,如果存在这种方法,那么在进行加密或数字签名时,它将无法达到目的.

所有这些都是基于单向功能的思想的,请参阅 http://en.wikipedia .org/wiki/单程功能 [^ ].相信或证明表示单向函数的算法没有后门( http://en.wikipedia.org/wiki/Backdoor_(计算) [ ^ ]).

也许您需要更好地理解公钥加密.请阅读> http://en.wikipedia.org/wiki/Public-key_cryptography [ http://en.wikipedia.org/wiki/Digital_signature [
No way.

If you read about asymmetric encryption and think about it, you will understand, that if such method existed it would defeat the purpose if ciphering or digital signature.

All this is based on the idea of one-way function, see http://en.wikipedia.org/wiki/One-way_function[^]. The algorithm representing a one-way function is believed or proven to have not backdoor (http://en.wikipedia.org/wiki/Backdoor_(computing)[^]).

Perhaps you need better understanding of public-key cryptography. Please read http://en.wikipedia.org/wiki/Public-key_cryptography[^].
To understand digital signature, read http://en.wikipedia.org/wiki/Digital_signature[^].

—SA


这篇关于提取私钥信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆