简体   繁体   English

通过证书和私钥创建.jks文件

[英]Create a .jks file from a Certificate and private Key

I wanted to create a .jks file using a Certificate and a private Key from an etoken programmatically. 我想以编程方式使用etoken的证书和私钥创建.jks文件。 I could access the etoken using the password but could not read the Certificate or the private key. 我可以使用密码访问etoken,但无法读取证书或私钥。 In an earlier question I had asked whether the private Key could be extracted from the etoken for which I was told it was not possible. 在先前的问题中,我曾问过是否可以从令牌中提取私钥,而我被告知这是不可能的。 So, my question is whether I could get the reference of the private key using PKCS11.. Thank you. 因此,我的问题是我是否可以使用PKCS11获得私钥的引用。谢谢。

You can get the reference (object handle) of the PrivateKey using PKCS11. 您可以使用PKCS11获得PrivateKey的引用(对象句柄)。 You can even get the public components of the PrivateKey. 您甚至可以获取PrivateKey的公共组件。 But you cannot extract the sensitive data that comprises the key. 但是您不能提取出包含密钥的敏感数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM