我的問題的根本原因:因爲Google Play
要求證書在October 22, 2033
後過期,我已將系統日期更改爲預約日期。
Keychain Access
證書助理的有效期爲20年,所以如果我要創建一個新的證書,它將在2033年6月26日到期,但不能達到要求。
A validity period for an X509 certificate is the number of days the certificate
is valid from the time it is issued. Certificates issued by Certificate Assistant
have a maximum validity period of 20 years.
一旦使用該證書對我的AIR應用程序的代碼簽名,谷歌播放在上傳APK提示出錯
Upload failed
You uploaded an APK signed with a certificate that is not yet valid.
You need to sign your APK with a certificate that is currently valid.
Learn more about signing.
所以我創建使用keytool
由一個新的證書執行以下命令:
$ keytool -keystore cert.jks -genkeypair -alias cert -keyalg RSA -keysize 2048 \
-validity 18250 -dname 'CN=cert,OU=org,O=org,L=location,ST=state,C=PH'
$ keytool -keystore cert.jks -exportcert -alias cert \
| openssl x509 -inform der -text
$ keytool -importkeystore -srckeystore cert.jks -destkeystore cert.p12 \
-srcstoretype jks -deststoretype pkcs12