Prerequisites
Keytool: A command-line tool for managing Keystores and certificates, usually included with the Java Development Kit (JDK). Ensure the JDK is installed on your machine.Step 1: Generate a New Keystore
If you already have a Keystore for your application, you may skip this step.- Open your terminal.
- Run the Keytool command:
your_keystore_path: The location where you want to save the keystore file (e.g.,my-release-key.jks).your_alias: The name you’ll use to refer to your key, typically your package name (e.g.,com.org.name).
Step 2: Complete the Keystore Prompts
After running the command, you’ll be prompted to enter the following information:- Keystore Password: Choose a strong password to protect your keystore.
- Your Name: Enter your name (or your organization’s name).
- Organizational Unit: Optional; you can leave it blank.
- Organization Name: Enter your organization’s name.
- City or Locality: Enter the city where you are located.
- State or Province: Enter the state or province where you are located.
- Country Code: Enter the two-letter country code (e.g., US for the United States).
Step 3: Extract SHA-256 Fingerprint
Once your keystore is generated, you can extract the SHA-256 fingerprint by running this command:your_keystore_path and your_alias with the values you used during keystore creation.
Step 4: Find the SHA-256 Fingerprint
In the command output, find the line starting withSHA256:. Your fingerprint will look like this::
