Nakomoto Nakomoto - 1 year ago 93
Java Question

Why I can not generate key with keytool and RSA?

So this is what I tried

keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000


But I am getting this..

keytool error: java.security.NoSuchAlgorithmException: RSA KeyGenerator not available
java.security.NoSuchAlgorithmException: RSA KeyGenerator not available


What should I do ?

p.s using: jdk1.8.0_121

Answer Source

try this

keytool -genkey -alias yourhost.com -keyalg RSA -keysize 2048 -keystore servername.jks
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download