-
-
Notifications
You must be signed in to change notification settings - Fork 10
Keystore Creation Guide
This guide explains how to generate a keystore using Termux for use with Enhancify or similar Android signing workflows.
It includes both:
- ποΈ Classic JKS format
- β Recommended modern PKCS12 format
- β Required for APK signing
- β Compatible with modern Android signing standards
- β Secure private key storage
- β Supports Enhancify and similar tools
Run inside Termux:
keytool -genkeypair \
-alias mykey \
-keyalg RSA \
-keysize 2048 \
-validity 10000 \
-keystore mykeystore.jksRun inside Termux:
keytool -genkeypair \
-alias mykey \
-keyalg RSA \
-keysize 2048 \
-validity 10000 \
-keystore mykeystore.p12 \
-storetype PKCS12| Parameter | Description |
|---|---|
-alias |
Name of your key |
-keyalg RSA |
Encryption algorithm |
-keysize 2048 |
Key strength |
-validity 10000 |
Key expiration in days |
-keystore |
Output keystore file |
-storetype PKCS12 |
Modern keystore format |
Replace the following values:
mykey
mykeystore
With your preferred naming scheme.
During generation, you will be asked for:
- Keystore password
- Key password
- Name / Organization
- Location / Country
- Confirmation details
Example command to copy keystore into shared storage:
cp mykeystore.p12 ~/storage/shared/MyKeys/You may replace:
MyKeys
With folders such as:
- Download
- Documents
- Custom signing folder
Example:
cp mykeystore.p12 ~/storage/shared/Download/If this is your first time using Termux storage access, run:
termux-setup-storageTap Allow when prompted.
After successful execution:
- Keystore file is generated
- File can be used for signing workflows
- File is accessible in shared Android storage
Install Java inside Termux:
pkg install openjdk-21Verify storage access:
termux-setup-storageCheck for typos in command parameters.
| Feature | Supported |
|---|---|
| Enhancify Signing | β |
| Android APK Signing | β |
| Termux | β |
| PKCS12 Standard | β |
https://t.me/Graywizard_projects/1/11146
https://t.me/Graywizard_projects/1/11147
- Never share keystore files publicly
- Always backup keystore securely
- Use strong passwords
- Store passwords separately from keystore files
Improvements, corrections, and additional signing workflows are welcome. Feel free to submit updates or open issues.
Thanks to the Android signing community.
Special thanks to jairjacom for their help! And providing guide steps .