Skip to content

Create Android Certificate

This section introduces how to create Android certificates to help you complete the launch configuration for an OEM App.

Prerequisites

  1. Install Java environment.
  2. Install Android Studio.

Two Methods

  • Generate directly in the terminal using keytool (Key and Certificate Management Tool).
  • Generate using Android Studio.
Method 1
  • In the terminal, enter the command keytool -genkey -alias test -keyalg RSA -validity 10000 -keystore test3.jks.

image

To view the jks certificate, enter the command keytool -v -list -keystore test3.jks in the terminal.

image

Method 2
  1. Open Android Studio and click "Build" -> "Generate Signed Bundle or APK".

image

  1. In the "Generate Signed Bundle or APK" window, select "APK" and click "Next".

image

  1. Click "Create new..." to enter the page for creating a jks certificate.

image

  1. Enter the key store path, alias, password, and other information, then click "OK". Remember the key store password, alias, and alias password.

image

  1. At this time, The Android jks certificate is created. Click "Cancel" to cancel the app build. You can find the test.jks certificate in the current directory.

image

image