[英]keytool error: java.lang.Exception: Alias <ima> does not exist
I am trying to create a Certificate Signing Request (CSR) from a public RSA key in the earlier generated keystore using the Java Keytool utility:我正在尝试使用 Java Keytool 实用程序从早期生成的密钥库中的公共 RSA 密钥创建证书签名请求 (CSR):
keytool -certreq -alias ima -file \
example_cert_req.csr -keystore example_keystore.jks \
-storepass example_password
It raises this error:它引发了这个错误:
keytool error: java.lang.Exception: Alias <ima> does not exist
How can I fix this?我怎样才能解决这个问题? Please help!
请帮忙!
First you should convert csr file to crt with key.首先,您应该使用密钥将 csr 文件转换为 crt。 And then import crt to jks keystore.
然后将 crt 导入到 jks 密钥库。
openssl x509 -req -in example_cert_req.csr -signkey privateKey.key -out certificate.crt
keytool -importcert -file certificate.cer -keystore example_keystore.jks -alias "ima"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.