Advertisement
sniper_nuko

署名

Jul 15th, 2014
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. Keystore生成
  2. MD5withRSA
  3. $ keytool -genkey -v -sigalg MD5withRSA -keyalg RSA -keystore test.keystore -alias testkey -validity 10000
  4.  
  5. SHA1withRSA
  6. $ keytool -genkey -v -sigalg SHA1withRSA -keyalg RSA -keystore test.keystore -alias testkey -validity 10000
  7.  
  8. jarsignerで署名
  9. MD5withRSA
  10. $ jarsigner -sigalg MD5withRSA -digestalg SHA1 -keystore test.keystore -verbose hoge.apk testkey
  11. タイムスタンプがなんたらと警告
  12. jarsigner -sigalg MD5withRSA -digestalg SHA1 -keystore test.keystore -tsa http://timestamp.globalsign.com/scripts/timstamp.dll -verbose hoge.apk testkey
  13. 警告なし
  14.  
  15. SHA1withRSA
  16. $ jarsigner -sigalg SHA1withRSA -digestalg SHA1 -keystore test.keystore -verbose hoge.apk testkey
  17. タイムスタンプがなんたらと警告
  18. jarsigner -sigalg SHA1withRSA -digestalg SHA1 -keystore test.keystore -tsa http://timestamp.globalsign.com/scripts/timstamp.dll -verbose hoge.apk testkey
  19. 警告なくなる
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement