如何產生 Google App 上傳金鑰

輸入底下指令:
keytool -genkey -v -keystore upload.keystore -keyalg RSA -keysize 2048 -validity 10000 -alias upload
指令大約用法,以 RSA 金鑰演算法產生一個大小為 2048 並且憑證有效日為 10000 天,別名使用 upload 且命名為 upload.keystore 的金鑰檔案。

上面輸入後會需要填如下面相關訊息
Enter keystore password:  <== 輸入金鑰所需密碼
Re-enter new password:  <== 確認密碼
What is your first and last name?
  [Unknown]:  <== 輸入建立人員名稱
What is the name of your organizational unit?
  [Unknown]:  <== 所屬的部門別
What is the name of your organization?
  [Unknown]:  <== 所屬公司名稱
What is the name of your City or Locality?
  [Unknown]:  <== 所在城市名稱
What is the name of your State or Province?
  [Unknown]:  <== 所在州省名稱
What is the two-letter country code for this unit?
  [Unknown]:  <== 所在國家兩碼別名
Is CN=”first and last name”, OU=”organizational unit”, O=”organization”, L=”City or Locality”, ST=”State or Province”, C=”two-letter country code” correct?
  [no]:  yes <== 輸入 yes 已確認資料無誤,並產生 upload.keystore 金鑰檔案