keytool使用

来源:互联网 发布:linux 添加登录用户 编辑:程序博客网 时间:2024/05/20 00:14



常用命令:

#产生keytool -genkeypair -keyalg "RSA" -keystore "keystore_name" -alias "test1"keytool -genkeypair -keyalg "RSA" -keystore "keystore_name" -alias "test2"#查看keytool -list -keystore "keystore_name"keytool -list -keystore "keystore_name" -alias "test1"#删除keytool -delete -keystore "keystore_name" -alias "test1"#导出keytool -export -keystore "keystore_name" -alias "test2" > test2.crtkeytool -export -keystroe "keystore_name" -alias "test2" -file "test2.crt"#查看crtkeytool -printcert -file test2.crt


其他

-validity 参数指明过期时间(天),默认90天 

-keysize 1024

参考:

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

2.http://blog.chinaunix.net/uid-17102734-id-2830223.html

0 0
原创粉丝点击