I got two question regarding the Java keytool. Can I generate csr
for trustedCertEntry
?
I also executed this command:
keytool -certreq -alias mydomain -keystore keystore.jks -file mydomain.csr
for a trustedCertEntry but I get error:
keytool error: java.lang.Exception: Alias <mydomain> has no key
which means a trustedCertEntry
cannot generate csr
? Or I need to have something, or a key to generate csr
file?