apksigner

Android signing error: trusted certificate entries are not password-protected

风格不统一 提交于 2019-12-03 16:40:32
问题 Got a certificate to sign the android unsigned release apk files, So I imported the cer using command: keytool -import -alias alias_name -file cer_name.cer -storepass changeit -keystore my_keystore.keystore But when signing the app with android studio it produces error: Error:Execution failed for task ':packageDebug'. > com.android.ide.common.signing.KeytoolException: Failed to read key alias_name from store "C:\Users\username\my_keystore.keystore": trusted certificate entries are not

Can I specify digest algorithm apksigner uses?

二次信任 提交于 2019-12-01 08:46:29
Due to recent SHA1-collision news, I want to ensure that SHA1 is no longer used in my apk signing. However I cannot find a parameter in apksigner . Is there a way to specify (either direct or indirect) the digest algorithm apksigner uses? (Before SDK 24, Android used java's jarsigner to sign apk, which has options like -sigalg SHA1withRSA -digestalg SHA1 ) Update: as Alex mentioned, I found how apksigner determine signature algorithm for scheme v1 in V1SchemeSigner.java . In short, apksigner determine it from minimumSDK and key type of certificate. SHA256withRSA for minimum SDK 18 (Android 4.3

Can I specify digest algorithm apksigner uses?

送分小仙女□ 提交于 2019-12-01 06:42:02
问题 Due to recent SHA1-collision news, I want to ensure that SHA1 is no longer used in my apk signing. However I cannot find a parameter in apksigner. Is there a way to specify (either direct or indirect) the digest algorithm apksigner uses? (Before SDK 24, Android used java's jarsigner to sign apk, which has options like -sigalg SHA1withRSA -digestalg SHA1 ) Update: as Alex mentioned, I found how apksigner determine signature algorithm for scheme v1 in V1SchemeSigner.java. In short, apksigner