For two days I could not sign the application using pepk.jar !

No examples! Or not found (May 2017)

It is not clear what and how to enter in --keystore =? --alias =? --output =?

Here is the instruction from Google:

Use the command below to launch a tool that exports and encrypts the private key. Remember to replace the arguments in bold. When prompted, enter your storage and key passwords.

$ ja-ja

This is how I did (1):

java -jar pepk.jar --keystore=D:\KEY_ET --alias=ET --output=D:\newkey.pem --encryptionkey=rb10fe8f7c7c9df715022017b00c6471f8ba8170b13049a11e6c09ffe3056a104a3bbe4ac5a955f4ba4fe93fc8cef27558a3eb9d2a529a2092761fb833b65643567894re Enter store password: Error: D:\KEY_ET (Отказано в доступе) 

I also tried it (2):

 java -jar pepk.jar --keystore=D:\KEY_ET\key.jks --alias=ET --output=D:\newkey.pem --encryptionkey=rb10fe8f7c7c9df715022017b00c6471f8ba8170b13049a11e6c09ffe3056a104a3bbe4ac5a955f4ba4fe93fc8cef27558a3eb9d2a529a2092761fb833b65643567894re Enter store password: Enter key password: Error: No key for alias: ET 

The application itself is signed in Android Studio without problems and published on Google Play without problems!

D: \ KEY_ET is a folder with keys, key.jks is a key created by Android Studio by the command Generate Signed APK ...

PS Here: [ https://stackoverflow.com/questions/44103024/how-to-enable-google-play-app-signing] there are explanations, taking into account they did, it seems, everything is correct ...

Apparently, the problem with "Access Denied". It started as an Administrator and not as an Administrator ... Rebuilt permissions to the folder with the keys D: \ KEY_ET.

Nothing helps!

1 answer 1

It turned out!

The correct was the second option record. Only it was necessary to write an alias in small letters: et . Although my alias inside Android Studio was created as ET (i.e., in capital letters) and worked in Android Studio normally and without warning !!!

Here is the correct syntax:

java bakery

I advise the developers of Android Studio and the utility pepk.jar to pay attention to this! And issue appropriate warnings at the signing stage inside Android Studio and while running the utility pepk.jar!

PS It turned out, as always, everything is very simple, but just try to guess that the alias, named in Android Studio in CAPITAL LETTERS in pepk.jar, should be written in lowercase)))

  • Before you, just no one tried to call aliases in capital letters - bukkojot
  • If I’m a developer with many years of experience I’ve done this, then there are still more) And I need to help them !!! And the system did not even react to it! Neither how! And a very experienced programmer, who was next to nothing, didn’t react to this either, when he helped me look for a mistake! It is not necessary, gentlemen, comrades, it is recorded that no one !!! Everyone can always make awkward mistakes! - user_MGU
  • You would write in Cyrillic, and then look for a mistake. If so bake, then write them in the bugtracker, but not here. - bukkojot
  • I just share my experience. Other people can get into this situation too! - user_MGU
  • @user_MGU good afternoon! Could you help me with my digital signature question? ru.stackoverflow.com/questions/958072/… - Wlad 7:14 pm