banditoth / maui-archiver-vscode

Visual Studio Code extension for archiving/publishing .NET MAUI applications
MIT License
40 stars 6 forks source link

Error Generating Keystore errors, keytool not found #21

Closed jamesmontemagno closed 3 months ago

jamesmontemagno commented 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

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

jamesmontemagno commented 3 months ago

JAVA_HOME is set in my system variables....