I am currently working in a pharmaceutical company which also publishes apps. Until now the only scope was iOS and now they want to create Android apps.
From the developers we receive an unsigned .aab file because we have an internal validation process. After that process we need to resign the app to deploy it in the Google Play Console.
But as i upload the .aab i get: "You uploaded an APK with an invalid signature (learn more about signing). Error from apksigner:" with no further information
As Mentioned we get a clean .aab file, no more no less and need to deploy it.
I have created a new app in the console, enabled app signing, downloaded the pepk.jar file, run the code attached to the pepk, uploaded the output file and downloaded the upload_cert.der file.
Now i already tried to import the .der file in my .keystore file and resigned the .aab --> no success
$ keytool -importcert -file upload_cert.der -keystore appname.keystore
i tried to create a .jks keystore and import the .der --> no success
--
example code of keystore creation: $ keytool -genkey -v -keystore appname.keystore -alias alias -keyalg RSA -keysize 2048 -validity 10000
example code of the signing: $ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore appname.keystore appname_unsigned.aab "alias"
example code of zipalign: $ zipalign -v 4 appname_signed.aab cimzia_aligned.aab
What is going wrong? Any idea?