How to sign an apk with google download file google?

after importing the der file into the keystore, following

keytool -keystore my-release-key.keystore  -importcert 
    -file ~/Downloads/upload_cert.der  -alias uploadcert  

I get an error when trying to build an APK release

trusted certificate entries are not password-protected

If I add

-protected

for import, i geth

keytool error: java.lang.IllegalArgumentException: password can't be null

and if I pass the password after protection, I get a usage message. not sure how to pass the password.

Any idea if I am on the right track for signing up with google upload der der certificate?

+6
source share
1 answer

It turns out the same problem, and the password cannot be an empty problem, it can be transmitted by editing a comment, for example:

keytool -keystore parkimayaz.keystore  -importcert -file 
~/Downloads/upload_cert.der  -alias uploadcert -keypass "yourpass" -
storepass "yourpass"

Another information in which I used the characters (', #, ^) in the password, which gave me some errors.

oracle keytool docs

+2

All Articles