Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit ef4d990

Browse files
authored
Merge pull request #38 from Clovel/fix/README
Updated README.md with instructions about code signing
2 parents e85db70 + 8441975 commit ef4d990

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ npx cap sync
5050

5151
With the Capacitor plugin installed, configure your app to use it via the following steps:
5252

53-
1. Add your deployment keys to the `capacitor.config.json` file, making sure to include the right key:
53+
1. Add your deployment & code signing (optional) keys to the `capacitor.config.json` file, making sure to include the right key:
5454

5555
```json
5656
"Plugins": {
@@ -65,7 +65,16 @@ With the Capacitor plugin installed, configure your app to use it via the follow
6565
}
6666
```
6767

68-
As a reminder, these keys are generated for you when you created your CodePush app via the CLI. If you need to retrieve them, you can simply run `appcenter codepush deployment list --app <ownerName>/<appName> --displayKeys`, and grab the key for the specific deployment you want to use (e.g. `Staging`, `Production`). App IDs can be retreived by running `appcenter apps list`.
68+
As a reminder, the *deployment* keys are generated for you when you created your CodePush app via the CLI. If you need to retrieve them, you can simply run `appcenter codepush deployment list --app <ownerName>/<appName> --displayKeys`, and grab the key for the specific deployment you want to use (e.g. `Staging`, `Production`). App IDs can be retrieved by running `appcenter apps list`.
69+
70+
The *public* keys should be generated by you, as should the corresponding private keys.
71+
```bash
72+
# generate private RSA key and write it to private.pem file
73+
openssl genrsa -out private.pem
74+
75+
# export public key from private.pem into public.pem
76+
openssl rsa -pubout -in private.pem -out public.pem
77+
```
6978

7079
*NOTE: You [must](https://docs.microsoft.com/en-us/appcenter/distribution/codepush/cli#releasing-updates) create a separate CodePush app for iOS and Android, which is why the above sample illustrates declaring separate keys for Android and iOS. If you're only developing for a single platform, then you only need to specify the deployment key for either Android or iOS.*
7180

0 commit comments

Comments
 (0)