简体   繁体   English

使用Java keytool的PKCS11格式密钥

[英]PKCS11 format key using Java keytool

I want to get a server certificate for Tomcat 7 in PKCS#11 format. 我想以PKCS#11格式获得Tomcat 7的服务器证书。 I used Java keytool utility and generated .keystore file using the following command 我使用Java keytool实用程序并使用以下命令生成了.keystore文件

keytool -genkey -alias tomcat -keyalg RSA 

But I don't know which format is .keystore . 但是我不知道哪种格式是.keystore I need PKCS#11. 我需要PKCS#11。 Can you explain me how to do this? 您能解释一下该怎么做吗?

PKCS#11 is not a certificate format. PKCS#11 不是证书格式。 PKCS#11 is a C-level interface to access secure tokens. PKCS#11是用于访问安全令牌的C级接口。 There is the Java PKCS#11 provider, which can be configured for keytool . 有Java PKCS#11提供程序, 可以keytool进行配置 Normally the keystore is in "JKS" (Java KeyStore) format. 通常,密钥库为"JKS" (Java密钥库)格式。

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

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