1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

pk8 と pem から keystore ファイルつくる

1
Posted at
  • apk に署名しないといけない。
  • Unity 上でつくるのが簡単なんだけど、事情があって他から pk8 と pem がきてしまった。

というときのやり方メモ。

$ openssl pkcs8 -in platform.pk8 -inform DER -outform PEM -out platform.priv.pem -nocrypt
$ openssl pkcs12 -export -in platform.x509.pem -inkey platform.priv.pem -out platform.pk12 -name hoge
$ keytool -importkeystore -srckeystore platform.pk12 -srcstoretype pkcs12 -destkeystore hoge.keystore -deststoretype pkcs12 -alias hoge

あとは Edit → Project Settings → Player の Publishing Settings のとこで、Use Existing Keystore チェックして、Browse Keystore で↑でつくった hoge.keystore 選んで、Keystore password いれて、Key のとこの Alias で hoge 選んで、Password いれるだけ。

image.png

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?