KeySigner: Keystore Management and APK Signing Tool
Overview
KeySigner is a command-line python tool designed to simplify keystore management and APK signing. It integrates KeyTool and ApkSigner, allowing developers to easily generate and migrate keystores (JKS, BKS, PKCS12), extract certificates and private keys, and sign APKs with custom keystores, supporting multiple signature schemes (v1, v2, v3). Whether you need to create, migrate, or sign, KeySigner provides a user-friendly interface for developers of all levels and efficient workflow.
Features
- Generate Keystores: Easily generate JKS, BKS, and PKCS12 keystores.
- Keystore Migration: Seamlessly migrate JKS, BKS and PKCS12 to each other.
- Export PKCS12 to PEM: Securely extract x509 certificates and private keys in PKCS8 format from PKCS12 keystores.
- Import PEM to PKCS12: Import the certificate and private key as new entries in the PKCS12 keystore.
- Keystore Info Display: Displays detailed information about the selected keystore, including certificate fingerprints, public key algorithm, expiries and more. If you want a detailed analysis of your keystores we recommend our other tool SigTool. Check out SigTool...
- APK Signing: sign APK files with custom keystores, supporting multiple signing formats (v1, v2, v3).
Why Use KeySigner?
- User-Friendly CLI: Interactive, step-by-step CLI to manage keystores and APK signing easily.
- Time-Saving: Automates repetitive tasks related to keystore management and signing.
- Flexible: Supports various keystore formats and all APK signing versions.
- Secure: Ensures that certificates and APKs are handled safely and professionally.
- Automated Commands: Automatically generates KeyTool and ApkSigner commands for easy use.
Requirements
Before using KeySigner, ensure that the following system dependencies are installed:
- Python: Required to run the KeySigner tool.
- Java: Required for KeyTool and ApkSigner.
- KeyTool: Part of the JDK, used for keystore management.
- ApkSigner: Available through sdkmanager, used for signing APKs.
- OpenSSL: Required for handling certificates and private keys.
Installation
Termux (Android)
To install KeySigner on Termux, use the following command to install all necessary dependencies:
pkg install python openjdk-17 apksigner openssl-tool
Installation via pip (Recommended)
You can easily install KeySigner using pip:
pip install --force-reinstall keysigner
For the latest changes and features, install KeySigner directly from the GitHub repository:
pip install --force-reinstall -U git+https://github.com/muhammadrizwan87/keysigner.git
Custom Build Installation
To build KeySigner from source:
-
Clone the repository:
git clone https://github.com/muhammadrizwan87/keysigner.git
-
Navigate to the KeySigner directory:
cd keysigner
-
Install the build tools:
pip install build
-
Build and install the package:
python -m build pip install --force-reinstall dist/keysigner-4.0-py3-none-any.whl
Usage
To start using KeySigner, simply run the tool using the keysigner command and follow the interactive instructions.
Example:
$ keysigner
Select an option:
1. Generate new keystore (JKS/BKS/PKCS12)
2. Migrate keystores to each other (JKS/BKS/PKCS12)
3. Convert PKCS12 to PEM and extract certificate and key
4. Convert PEM to PKCS12
5. Show keystore information
6. Sign APK
7. Show Notes
q. Quit
Contributing
We welcome contributions! Feel free to submit issues or pull requests on GitHub if you encounter any bugs or have suggestions for new features.
License
This project is licensed under the MIT License. You can view the license details in the LICENSE file.
Author
MuhammadRizwan
- Telegram Channel: TDOhex
- Second Channel: Android Patches
- Discussion Group: Discussion of TDOhex
- GitHub: MuhammadRizwan87
Metadata
Release files for keysigner 4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| keysigner-4.0.tar.gz | 7.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| keysigner-4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.5 MB
Release files / keysigner-4.0.tar.gz
| Download URL | keysigner-4.0.tar.gz |
|---|---|
| Size | 7.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7af2a54fffe9f564c7d472ab739a47e03c5f8ac75a4f84d0f4c2b34fecb7b475
|
|
BLAKE2b-256 checksum How to use checksums |
2ed00dc2fc4be399d110e45228a3849dc0b386a9c98e007e3fc3089b5e8dbc63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / keysigner-4.0-py3-none-any.whl
| Download URL | keysigner-4.0-py3-none-any.whl |
|---|---|
| Size | 7.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c812ba3d6f5ee455eb9468f1857ec78176d45094067f77f04ced8e1f25d23be
|
|
BLAKE2b-256 checksum How to use checksums |
b25fef87f347a0f31b069b706ee3b7a53aa4f184ec9108b0cff5d7ec004387ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|