keytool 是个**和证书管理工具。它使用户能够管理自己的公钥/私钥对及相关证书,用于(通过数字签名)自我认证(用户向别的用户/服务认证自己)或数据完整性以及认证服务。在JDK 1.4以后的版本中都包含了这一工具,它的位置为%JAVA_HOME%\bin\keytool.exe

   
keytool使用方法
 

1.生成证书

keytool -genkeypair -keyalg RSA -keysize 1024 -sigalg MD5withRSA -validity 365 -alias www.smed.net -keystore lxh.keystore
2.导出证书
keytool -exportcert -alias www.smed.net -keystore lxh.keystore -file lxh.cer -rfc
3.打印证书
keytool -printcert -file lxh.cer
4.生成证书请求
keytool -certreq -alias www.smed.net -keystore lxh.keystore -file lxh.csr -v
5.列出证书清单
keytool -list -alias www.smed.net -keystore lxh.keystore

keytool -list -keystore lxh.keystore
6.导入证书
keytool -importcert -trustcacerts -alias www.smed.net -file lxh.cer -keystore lxh.keystore

相关文章:

  • 2021-12-12
  • 2022-12-23
  • 2021-05-28
  • 2021-09-02
  • 2021-06-15
  • 2021-10-29
  • 2022-12-23
猜你喜欢
  • 2021-12-17
  • 2022-12-23
  • 2021-06-01
  • 2021-07-18
  • 2021-10-14
相关资源
相似解决方案