Bug#1012451: [Android-tools-devel] Bug#1012451: apksigner: Using PKCS11 keystore fails with NoSuchMethodException

2022-07-21 Thread Hans-Christoph Steiner
That was exactly what I was asking, thanks for the testing. My guess is that upstream has fixed this in newer releases. There is work underway to update this package. Plus there is a newer version available in bullseye-backports: 31.0.2-1~bpo11+1: all

Bug#1012451: [Android-tools-devel] Bug#1012451: apksigner: Using PKCS11 keystore fails with NoSuchMethodException

2022-07-21 Thread dev
For the record, Debian's apksigner works without issues after installing Java 8 and marking it as default with update-alternatives. This is definitely a compatibility issue that might need to be fixed either upstream or as a patch. Danilo

Bug#1012451: [Android-tools-devel] Bug#1012451: apksigner: Using PKCS11 keystore fails with NoSuchMethodException

2022-06-15 Thread dev
With upstream I assume you mean the apksigner binary shipped with the Android build-tools? I tried with build-tools 30.0.2: $ /opt/android/cmdline-tools/tools/bin/sdkmanager --install "build-tools;30.0.2" Followed by: $ /opt/android/build-tools/30.0.2/apksigner sign \ --ks NONE

Bug#1012451: [Android-tools-devel] Bug#1012451: apksigner: Using PKCS11 keystore fails with NoSuchMethodException

2022-06-07 Thread Hans-Christoph Steiner
Thanks for the detailed bug report. Have you tried using the Google binaries? Does this also happen there? IIRC upstream fixed some bugs related to smartcards in recent releases.

Bug#1012451: apksigner: Using PKCS11 keystore fails with NoSuchMethodException

2022-06-07 Thread dev
Package: apksigner Version: 30.0.3-4 Severity: important When trying to use apksigner on Debian 11 in combination with a hardware HSM (YubiHSM 2 in my case) through SunPKCS11, signing fails with an error message: $ apksigner sign \ --ks NONE --ks-type PKCS11 \ --ks-pass