12-03-2020, 07:20 PM
This guide will explain how to generate a custom key which can be used to sign your Android images like boot, recovery, system etc. This guide will come in handy in a case where the bootloader only accepts signed images (whether self-signed or factory-signed).
Requirements
- A PC (I'm using Windows for this guide)
- Download and install OpenSSL Light for Windows @ https://slproweb.com/products/Win32OpenSSL.html
Steps to create a custom signing key using OpenSSL
Follow the steps below to generate a custom private key
See the video tutorial below or @ https://youtu.be/uICvoalIUf8- Tap the Start menu and search for cmd.exe
- Right-click CMD from the results and run as Administrator
- Click Yes when prompted
- Open the directory where OpenSSL was installed to and open the bin folder (mine is C:\Program Files\OpenSSL-Win64\bin . Ensure to enter yours in the command below)
- Right-click the address bar and select Copy address
- Go back to command prompt, type this command (use your own location) and tap Enter
Code:cd C:\Program Files\OpenSSL-Win64\bin
- You should now be in the C:\Program Files\OpenSSL-Win64\bin at command prompt
- Type this command (I've chosen to name my key hovatek) and tap Enter
Code:openssl genrsa -f4 -out hovatek.pem 4096
- Wait till its done (i.e back to C:\Program Files\OpenSSL-Win64\bin>_)
- You should now find a hovatek.pem file
Important Notice
- Your OpenSSL installation directory might vary from mine so ensure to enter yours
- The generated .pem file is a custom one and very likely to be different from what your device's OEM uses to sign its images
Note!
We have a reply schedule for Free Support. Please upgrade to Private Support if you can't wait.