mpaghq / capacitor-codepush

Capacitor plugin for CodePush
http://appcenter.ms
Other
153 stars 64 forks source link

Unable to verify signature for package: PUBLIC_KEY in capacitor.config.json #42

Open ashish141199 opened 3 years ago

ashish141199 commented 3 years ago
"CodePush": {
      "IOS_DEPLOY_KEY": "IOS_DEPLOYMENT_KEY",
      "IOS_PUBLIC_KEY": "APP_SECRET_KEY",
      "ANDROID_DEPLOY_KEY": "ANDROID_DEPLOYMENT_KEY",
      "ANDROID_PUBLIC_KEY": "APP_SECRET_KEY",
      "SERVER_URL": "https://codepush.appcenter.ms/"
 }

Hi, in the capacitor.config.json file, what exactly should I put in place of IOS_PUBLIC_KEY and ANDROID_PUBLIC_KEY? It's mentioned that I put the APP_SECRET_KEY. Is the the one:

<platform name="android">
  <preference name="APP_SECRET" value="key-which-is-shown-here" />
</platform>

^ displayed on appcenter dashboard.

If I put that one, I get the following error:

Unable to verify signature for package: Error: Error occurred while creating the a public keyjava.security.spec.InvalidKeySpecException: com.android.org.conscrypt.OpenSSLX509CertificateFactory$ParsingException: Error parsing public key. StackTrace: Error: Unable to verify signature for package: Error: Error occurred while creating the a public keyjava.security.spec.InvalidKeySpecException: com.android.org.conscrypt.OpenSSLX509CertificateFactory$ParsingException: Error parsing public key
    at decodeSignatureFail
ashish141199 commented 3 years ago

Please help @leo6104. Any inputs @Clovel?

o-alexandrov commented 3 years ago

@ashish141199 please find answer to your question here https://github.com/mapiacompany/capacitor-codepush/pull/44/files