Skip to main content

Apksigner

Use APK signer to sign and verify the signature of APK files. Android package signing uses the apksigner utility available as part of the Android Studio command line utilities. Apksigner is available in version 24.0.3 and higher of the Android SDK Build Tools.

Integrate Apksigner with Signing Manager Controller (SMCTL) for simplified signing. Alternatively, you can sign directly with Apksigner and reference your private key stored in Software Trust Manager.

Dica

Apksigner is compatible for signing on Windows, Linux, macOS.

What files can you sign with Apksigner and PKCS11?

  • .aab

  • .apk

Prerequisites

Install Apksigner

There are two ways to install Apksigner. The easiest method is to download the Android SDK because Apksigner is included in the download, however the Android SDK is a big file. Alternatively, you can install Apksigner by using installing build tools and downloading Android Studio.

Set PATH environment variables

Operating systems use the environment variable called PATH to determine where executable files are stored on your system. Use the PATH environment variable to store the file path to your signing tools to ensure that the CLI can reference these signing tools.

Download Software Trust Manager PKCS11 library

Apksigner uses a configuration file to integrate with Software Trust Manager PKCS11 library.

Follow these instructions to download Software Trust Manager PKCS11 library and create the configuration file.

Sign with Apksigner

You can sign with Apksigner directly or via DigiCert's signing tools integrated with Apksigner: