既存のアプリをGoogle Play App Signing 有効にする際、つまずいたメモ

私の環境情報

OS:mac OS High Sierra  10.13.4 java:

java version “1.8.0_151”

Java(TM) SE Runtime Environment (build 1.8.0_151-b12)

Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)

 

google Play Consoleの案内通りにコマンド実行するもエラーになる

※encryptionkeyの文字列はセキュリティ上、書き換えております。
下記のコマンドを使ってツールを実行し、秘密鍵のエクスポートと暗号化を行います。太字で強調表示されている引数を変更してください。メッセージが表示されたら、ストアと鍵のパスワードを入力します。
$ java -jar pepk.jar –keystore=foo.keystore –alias=foo –output=encrypted_private_key_path –encryptionkey=rph9fe8f7c7c9df715022017b00c6471ffkt9170b13049a11e6c09ffe3056a104a3bbe4ac496k5f4ba4fe93fc8cef27558a3eb9d2a5ir;0092761fb833b656cd48b9rlsk
 
上記に従って実行するも、以下の通り、Error…..

Error: Invalid argument: “hellotouch” –output

USAGE:

       java -jar pepk.jar –keystore <release_keystore> –alias <key_alias> –encryptionkey=<encryption_key_hex> –output=<output_file>

pepk (Play Encrypt Private Key) is a tool for exporting private keys from a

Java Keystore and encrypting them for transfer to Google Play as part of

enrolling in Google Play App Signing.

        REQUIRED FLAGS

–keystore            Path to the keystore containing the private key to export

–alias               Alias of the private key in the keystore

–encryptionkey       Public key to encrypt the private key with. This will be

                      be the hex encoded bytes of the public key. The public key

                      is a 4-byte identity followed by a 64-byte P256 point.

–output              File in which to output the encrypted private key.

        OTHER OPTIONS

–help                Show this usage page and exit

  ①「USAGE:」には「=」でなく、半角スペースの後に値を指定している様子なのでこのフォーマットで実行してみる。 →ダメ ② 引数の順番も「USAGE:」通りにしてみる →なんかうまくいった。 多分、他のミスが原因だと思います。エラーの時のサンプルなくなっちゃった。

とりあえず、うまくいったサンプル

java -jar pepk.jar –keystore user.keystore  –alias hellotouch –encryptionkey rph9fe8f7c7c9df715022017b00c6471ffkt9170b13049a11e6c09ffe3056a104a3bbe4ac496k5f4ba4fe93fc8cef27558a3eb9d2a5ir;0092761fb833b656cd48b9rlsk –output encrypted

 ]]>

コメント

  1. … [Trackback]
    […] Here you can find 84113 more Information on that Topic: kennosuke2.site/unity/既存のアプリをgoogle-play-app-signing-有効にする際、つまずいた […]

  2. westernfilms より:

    … [Trackback]
    […] There you will find 14790 additional Info on that Topic: kennosuke2.site/unity/既存のアプリをgoogle-play-app-signing-有効にする際、つまずいた […]

  3. … [Trackback]
    […] Read More here to that Topic: kennosuke2.site/unity/既存のアプリをgoogle-play-app-signing-有効にする際、つまずいた […]

タイトルとURLをコピーしました