-
Notifications
You must be signed in to change notification settings - Fork 478
Android Keystore: error parsing PKCS#12 with DSA encrypted certificate #2845
Comments
Seems like there's a problem when uploading the keystore through the credentials manager and hitting this error: ApiV2Error: An unknown error occurred. |
Updated the cli and retry to upload the same keystore. The server return this log: ApiV2Error: Invalid PKCS#12 (.p12) keystore: PKCS12: bag is not a certificate. Note: This is a valid keystore as it is currently being use for app submission in the Play store |
the error is coming from here: expo-cli/packages/pkcs12/src/index.ts Lines 12 to 27 in b9e5eb3
|
I generated the keystore myself using the command: |
when you generate a keystore like that, you will see:
you can try following the instructions to switch to the PKCS12 standard format |
Still hitting the same issue when upload the keystore to expo after the conversion cause the existing keystore is the type PKCS12. this is the output when I ran keytool -list -v -keystore [keystore-path] on my existing keystore before the conversion Keystore type: PKCS12 Your keystore contains 1 entry Alias name: easysocial Extensions: #1: ObjectId: 2.5.29.14 Criticality=false |
@quinlanj is investigating |
The problem is that I suspect it will take some time to fix the root cause, especially if it requires a PR to be made upstream to Linking the original forum post with more context here: https://forums.expo.io/t/getting-error-when-trying-to-build-android/44917/4 |
so it turns out |
reopening until we pull upstream changes and deploy to servers |
Changes have been deployed to server. Can someone confirm that their problem has been solved (or not 😅 )? @kratoskp |
My DSA signatured keystore can be upload succesfully via expo credentials manager. Thanks. @quinlanj But the actual building is still failing without any logs. Created an issue here expo/turtle#276 |
I just made a new build attempt, but it was not successful. My build: 07ff2957-4a3c-4db2-91d0-f3046dbab2c8 I need to send an existing certificate, because I already deployed it once. |
hey all! For those of you who are having trouble uploading keystores (pkcs#12 with dsa encrypted cert), a fix was deployed earlier today. For those of you who are experiencing failed android builds with PKCS#12 keystores, this is a separate problem, and is NOT related to this issue. Let's track it here instead: expo/turtle#276 @rafaelvicio |
That's weird, because I'm using a RSA signed certificate which is also failing. |
Description
The following is already set in the environment:
EXPO_ANDROID_KEYSTORE_FILE=/path/to/keystore.jks
EXPO_ANDROID_KEYSTORE_ALIAS=“alias”
EXPO_ANDROID_KEY_PASSWORD=“password”
EXPO_ANDROID_KEYSTORE_PASSWORD=“password”
This is the command that I have executed locally:
expo build:android --non-interactive --release-channel build-33 --keystore-path=$EXPO_ANDROID_KEYSTORE_FILE --keystore-alias=$EXPO_ANDROID_KEYSTORE_ALIAS
Expected Behavior
Build come out fine
Observed Behavior
Environment
Expo CLI 3.28.2 environment info:
System:
OS: macOS 10.15.7
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 14.4.0 - /usr/local/bin/node
Yarn: 1.22.5 - /usr/local/bin/yarn
npm: 6.14.8 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.9.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.1, DriverKit 19.0, macOS 10.15, tvOS 14.0, watchOS 7.0
IDEs:
Android Studio: 4.0 AI-193.6911.18.40.6626763
Xcode: 12.1/12A7403 - /usr/bin/xcodebuild
npmPackages:
expo: ^39.0.0 => 39.0.3
react: 16.13.1 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-39.0.3.tar.gz => 0.63.2
react-navigation: ^4.4.0 => 4.4.2
npmGlobalPackages:
expo-cli: 3.28.2
Expo Workflow: managed
The text was updated successfully, but these errors were encountered: