码迷,mamicode.com
首页 > 其他好文 > 详细

keytool工具

时间:2017-12-13 11:46:40      阅读:335      评论:0      收藏:0      [点我收藏+]

标签:name   blog   rsa   div   jks   port   exp   post   rgb   

keytool -genkeypair -alias afc -keyalg RSA -validity 36500 -keystore afc.jks -storepass grgbanking -keypass grgbanking -dname CN=afc,OU=grg,O=grgbanking,L=gz,ST=gd,C=cn  -ext bc:c

keytool -genkeypair -alias afcsrv -keyalg RSA -validity 36500 -keystore afcsrv.jks -storepass grgbanking -keypass grgbanking -dname CN=afcsrv,OU=grg,O=grgbanking,L=gz,ST=gd,C=cn
keytool -certreq -alias afcsrv -file afcsrv_auth_by_afc.csr -keystore afcsrv.jks -storepass grgbanking
keytool -gencert -alias afc -infile ../server/afcsrv_auth_by_afc.csr -outfile ../server/afcsrv_auth_by_afc.cer -keystore afc.jks -storepass grgbanking
keytool -importcert -alias afcsrv -file afcsrv_auth_by_afc.cer -keystore afcsrv.jks -storepass grgbanking

keytool -genkeypair -alias afccli -keyalg RSA -validity 36500 -keystore afccli.jks -storepass grgbanking -keypass grgbanking -dname CN=afccli,OU=grg,O=grgbanking,L=gz,ST=gd,C=cn
keytool -certreq -alias afccli -file afccli_auth_by_afc.csr -keystore afccli.jks -storepass grgbanking
keytool -gencert -alias afc -infile ../client/afccli_auth_by_afc.csr -outfile ../client/afccli_auth_by_afc.cer -keystore afc.jks -storepass grgbanking
keytool -importcert -alias afccli -file afccli_auth_by_afc.cer -keystore afccli.jks -storepass grgbanking

keytool -exportcert -alias afc -file afc.cer -keystore afc.jks -storepass grgbanking
keytool -importcert -alias afc -file ../afc/afc.cer -keystore afcsrv.jks -storepass grgbanking
keytool -importcert -alias afc -file ../afc/afc.cer -keystore afccli.jks -storepass grgbanking

  

keytool工具

标签:name   blog   rsa   div   jks   port   exp   post   rgb   

原文地址:http://www.cnblogs.com/itpoorman/p/8030793.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!