Closed jamesmontemagno closed 3 months ago
Was able to reproduce the Error generating key pair.
Might be worth adding some additional data. maybe it can't find keytool? Does it need to be set in the path?
If i run keytool -genkeypair -v -keystore "mykeystore.keystore" -alias "myKey" -keyalg RSA -keysize 2048 -validity 10000 -storepass "Password" -keypass "Password" -dname "CN=James, OU=TEST, O=TEST, L=TEST, ST=WA, C=US
keytool -genkeypair -v -keystore "mykeystore.keystore" -alias "myKey" -keyalg RSA -keysize 2048 -validity 10000 -storepass "Password" -keypass "Password" -dname "CN=James, OU=TEST, O=TEST, L=TEST, ST=WA, C=US
it fails
If I run: "C:\Program Files (x86)\Android\openjdk\jdk-17.0.8.101-hotspot\bin\keytool.exe" -genkeypair -v -keystore "mykeystore.keystore" -alias "myKey" -keyalg RSA -keysize 2048 -validity 10000 -storepass "Password" -keypass "Password" -dname "CN=James, OU=TEST, O=TEST, L=TEST, ST=WA, C=US" it works from the terminal
"C:\Program Files (x86)\Android\openjdk\jdk-17.0.8.101-hotspot\bin\keytool.exe" -genkeypair -v -keystore "mykeystore.keystore" -alias "myKey" -keyalg RSA -keysize 2048 -validity 10000 -storepass "Password" -keypass "Password" -dname "CN=James, OU=TEST, O=TEST, L=TEST, ST=WA, C=US"
JAVA_HOME is set in my system variables....
Was able to reproduce the Error generating key pair.
Might be worth adding some additional data. maybe it can't find keytool? Does it need to be set in the path?
If i run
keytool -genkeypair -v -keystore "mykeystore.keystore" -alias "myKey" -keyalg RSA -keysize 2048 -validity 10000 -storepass "Password" -keypass "Password" -dname "CN=James, OU=TEST, O=TEST, L=TEST, ST=WA, C=US
it fails
If I run:
"C:\Program Files (x86)\Android\openjdk\jdk-17.0.8.101-hotspot\bin\keytool.exe" -genkeypair -v -keystore "mykeystore.keystore" -alias "myKey" -keyalg RSA -keysize 2048 -validity 10000 -storepass "Password" -keypass "Password" -dname "CN=James, OU=TEST, O=TEST, L=TEST, ST=WA, C=US"
it works from the terminal