Current location - Quotes Website - Signature design - How to view keystore android on mac
How to view keystore android on mac

After writing the APP, you need to test and publish it. The steps are as follows:

1. Open the terminal

2. Go to the root directory of the java installation. That is, enter

cd /Library/Java/Home/bin/

In fact, after testing, you can do it without going to this directory. JAVA comes with MAC and just go down.

3. The current user does not have the highest authority and cannot generate any files in the Library folder. You can generate files in the current user directory

If the current user name is xiaoming, then as follows

keytool -genkey -v -keystore android.keystore -alias android -keyalg RSA -validity 20000 -keystore /Users/xiaoming/android_demo.keystore

4. Enter as prompted , the complete code is as follows:

[code language=plain][/code]

PS: I encountered keytool garbled characters during operation, the solution is as follows:

< p> After opening the terminal, go to the menu-Preferences-Description File-Advanced. There are text encoding settings below. The default is UTF-8. Here I changed it to Chinese GB 2312 and it was displayed normally.

5. At this point, you can go to the current user root directory to view the produced keystore signature file

View the certificate information:

keytool -list -v - keystore debug.keystore