Configure Unity App with Public Key
To establish a secure communication channel between the Amazon Appstore and your app, you must configure your app with a public key. This public key is unique for every app. When you generate the public key from the Developer Console, Amazon generates a corresponding private key. These public and private keys form a key pair to sign license responses. Through this key pairing, you ensure that the users who install your app are authorized.
To configure your existing app with the public key:
- Log into the Developer Console with your developer account.
Go to Apps & Services > My Apps. Then click your app. (If you don't already have an app, see Log In and Add an App.)
Create a new version of your app. In the area below your app's name, click Add Upcoming Version.Important: The link to the public key appears only when you create a new version or when you create a new app. If you had a new version in progress prior to the release of the Appstore SDK 3.0.2, you must complete your existing version and then create a new version. Only then does the public key link appear. (Alternatively, submit a Contact Us Case regarding your app and request that the Upcoming Version be cancelled.)
Go to the APK Files tab.
Click Public Key in the upper-right area.Important: The link to Public Key is available when publishing a new version of an existing app or creating a new one.
In the Public Key dialog box that appears, click the AppstoreAuthenticationKey.pem link to download a PEM file. This file contains your public key.
In the Assets folder of your project, create a new folder named as StreamingAssets.
- Copy the AppstoreAuthenticationKey.pem file you downloaded, and paste it in your Assets/StreamingAssets folder.
Last updated: Jan 15, 2022