關於app簽名——無法對 jar 進行簽名: 時間戳記授權沒有響應

來源:互聯網
上載者:User

標籤:jks   rbo   for   不能   apk   sig   val   blank   關閉防火牆   

這段時間,一直在嘗試ionic2,打重新拾起ionic的過程中發現很多流程已經和之前的流程存在很大的差異,在簽名時遇到了錯誤,集體錯誤如下:

根據網上尋找資料,說關閉防火牆即可,經實驗不可以。

執行的命令

jarsigner -verbose -digestalg SHA1 -sigalg MD5withRSA -tsa https://timestamp.geotrust.com/tsa -keystore happen.keystore -keypass coo -storepass coo -signedjar signed.apk platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk happen.keystore

或者
jarsigner -verbose -tsa https://timestamp.geotrust.com/tsa -keystore ****.keystore -signedjar ****.apk platforms/android/build/outputs/apk/android-release-unsigned.apk ****.keystore

執行都提示無法對 jar 進行簽名: 時間戳記授權沒有響應,在網上尋找相關錯誤也沒有發現正確的答案,於是開啟時間戳記地址發現時間戳記地址在牆內和牆外都不能訪問,於是尋找相關資料發現時間戳記地址已經到期,更換時間戳記地址即可

相關連結:

https://stackoverflow.com/questions/43585380/is-http-timestamp-geotrust-com-tsa-not-longer-available-for-signtool

https://knowledge.symantec.com/support/partner/index?page=content&id=NEWS10071&viewlocale=en_US

開啟第二個地址發現我們命令中的地址顯示已經到期,測試新地址可用,替換為新地址即可。

正確命令如下

jarsigner -verbose -tsa http://sha256timestamp.ws.symantec.com/sha256/timestamp -keystore happen.keystore -signedjar happen.apk platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk happen.keys
tore

或者

jarsigner -verbose -digestalg SHA1 -sigalg MD5withRSA -tsa http://sha256timestamp.ws.symantec.com/sha256/timestamp -keystore happen.keystore -keypass 111111 -storepass 111111 -signedjar signed.apk platforms/androi
d/app/build/outputs/apk/release/app-release-unsigned.apk happen.keystore

以上為1.0時採用的簽名方法:

下邊是ionic2 document文檔內的簽名方法:

keytool -genkey -v -keystore my-release-key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias my-alias

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.jks android-release-unsigned.apk my-alias

官方地址

 

關於app簽名——無法對 jar 進行簽名: 時間戳記授權沒有響應

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.