首页 > TAG信息列表 > storepass

java sdk自签证书

p12格式 keytool -genkey -alias tomcat -keypass 123456 -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore D:/keys/keystore.p12 -validity 3650 -storepass 123456 -dname "CN=192.168.19.240, OU= tian, O=tian, L= hz, ST=zhejiang, C=CN" -ext san=ip

怎么查看keystore文件内容

首先,我们要通过控制台(win+R输入cmd打开)进入jdk的jre的bin目录下 然后输入 keytool -list -v -keystore keystore文件路径 -storepass keystore密码 就行了  

java证书转换

java证书转换 将jks格式证书转换为pem格式 keytool -export -rfc -alias yangjie -file yangjie.pem -keystore yangjie.jks -storepass yangjie alias 是证书别名, file 是pem证书名, keystore 是jks证书名, storepass 是store密码 》》》博主长期更新学习心得,推荐点赞关

Keystore was tampered with, or password was incorrect

#修改key条目密码# keytool -keypasswd -alias test.com -keypass oldkeypwd -new newkeypwd -storepass storepwd -keystore keystore#修改keystore文件密码# keytool -storepasswd -keystore keystore -storepass oldstorepwd -new newstorepwd上述两条命令的新旧密码可以相同