您的位置:首页 > 编程语言 > Java开发

java加密解密--keytool 用法

2016-06-22 18:05 537 查看


keytool 用法总结

http://ln-ydc.iteye.com/blog/1335213

java中Keytool的使用总结 

http://blog.csdn.net/tony1130/article/details/5134318

四:附录

官方有关keytool命令的介绍文档:

jdk1.4.2 :http://docs.oracle.com/javase/1.4.2/docs/tooldocs/windows/keytool.html

jdk1.6    :http://docs.oracle.com/javase/6/docs/technotes/tools/windows/keytool.html

jdk1.7    :http://docs.oracle.com/javase/7/docs/technotes/tools/windows/keytool.html

1.store--aes-key

Generating a key with a password seperate from the key store password:

keytool -genseckey -alias key-0 -keypass keyPassword -keyalg AES \

  -keysize 128 -validity 9000 -keystore test.keystore \

  -storetype jceks -storepass keyStorePassword


Generating a key with the password the same as the key store password:

keytool -genseckey -alias key-1 -keyalg AES -keysize 128 -validity 9000 \

  -keystore src/test/resources/test.keystore -storetype jceks \

  -storepass keyStorePassword
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: