Sign APK Files with APKSigner using AppViewX PKCS#11 Provider

Prerequisites

  • Run the AppViewX SIGN+ Installer to install the prerequisites required to use the AppViewX PKCS#11 Provider with APKSigner.

Signing with Apksigner

Command:
java -jar <path_to_apk_signer_jar> sign --provider-class sun.security.pkcs11.SunPKCS11 --provider-arg <path to AVXPKCS11V1.cfg> --ks NONE --ks-type PKCS11 --ks-pass pass:12345678 --ks-key-alias <keypair alias> --in "<input_file_path>" --out "<output_file_path>" --v1-signing-enabled false --v2-signing-enabled false --v3-signing-enabled true --v4-signing-enabled false
The <path to AVXPKCS11V1.cfg>, <keypair alias> parameters are auto generated based on the signing policy configurations in the README after running the SIGN+ Installer.

Verifying the Signature with Apksigner

Command:
java -jar <path_to_apk_signer_jar> verify -verbose --print-certs <input_file_path>