keytool 错误: java.io.IOException: Keystore was tampered with, or password was incorrect → 解决办法
keytool 错误: java.io.IOException: Keystore was tampered with, or password was incorrect → 解决办法
问题复现
我这里是在发布cas时,导入证书到JDK时出错
具体命令行
# 生成证书,用jdk的keytool
keytool -genkey -alias tomcat -keyalg RSA -keysize 1024 -validity 36500 -keystore /opt/mycas/tomcat.keystore
# 导出证书
keytool -export -trustcacerts -alias tomcat -file /opt/mycas/tomcat.cer -keystore /opt/mycas/tomcat.keystore
# 导入证书到jdk
keytool -import -trustcacerts -alias tomcat -file /opt/mycas/tomcat.cer -keystore "/usr/local/src/java/jdk1.8.0_251/jre/lib/security/cacerts"
于是出现了以下错误
解决办法
导入证书到JDK输入密钥库口令这里没有输入生成证书时自己设置的秘钥而是输入changeit
或者直接:
keytool -import -trustcacerts -alias tomcat -file /opt/mycas/tomcat.cer -keystore "/usr/local/src/java/jdk1.8.0_251/jre/lib/security/cacerts" -storepass changeit
到这里我的问题解决了,可能每个人出现的问题不一样解决方案也不一样。希望可以帮助到大家。
借鉴文章:https://blog.csdn.net/zhuzhiqiang_zhu/article/details/70212499
keytool 错误: java.io.IOException: Keystore was tampered with, or password was incorrect → 解决办法相关推荐
- keytool 错误: java.io.IOException: Keystore was tampered with, or password was incorrect----gt;解决方法
老前辈们说的对,干IT需要最多的是细心.老哥我打包打了一个多小时,也是奇迹了. 问题:在创建新签名的时候报错. keytool 错误: java.io.IOException: Keystore wa ...
- 《err keytool 错误: java.io.IOException: Keystore was tampered with, or password was incorrect》
错误日志: keytool 错误: java.io.IOException: Keystore was tampered with, or password was incorrect java.io ...
- keytool 错误: java.io.IOException: Keystore was tampered with, or password was incorrect
1.这里需要输入的密码不是证书的密码执行keytool -import -keystore - file 这个命令提示需要输入密码 进入jdk的bin目录,执行以下脚本, keytool -impor ...
- Caused by: java.io.IOException: Keystore was tampered with, or password was incorrect
启动yarn-session时上报的错误 java.io.IOException: Failed to initialize SSLContext for the blob server at org ...
- Exception: java.io.IOException: Keystore was tampered with, or password was incorrect
在进行证书相关操作默认密码changeit,而不是注册时自己设置的密码.
- keytool 错误 java.io.IOException: incorrect AVA format
用keytool生成sha1的,一定要有一个keystore 当然系统默认有一个c:\users\administrator\debug.keystore,密码android这样可以生成一个debug ...
- keytool 错误:java.io.IOException:Incorrect AVA format
在使用Android Studio生成签名文件的时候提示:keytool 错误:java.io.IOException:Incorrect AVA format 的错误,这个主要是我在填写证书里Org ...
- cas单点登录配置,Java导入证书失败Keystore was tampered with, or password was incorrect
keytool 错误: java.io.IOException: Keystore was tampered with, or password was incorrect 在进行证书相关操作,如更新 ...
- Java导入证书失败Keystore was tampered with, or password was incorrect
keytool 错误: java.io.IOException: Keystore was tampered with, or password was incorrect 在进行证书相关操作,如更新 ...
最新文章
- 前谷歌工程师:如何看待程序员普遍缺乏数据结构和算法知识?
- Python 库安装问题-用pip安装pyHook3报错的两种常见问题和解决方法
- Set集合设置变量自增长
- CNCF TOC 委员张磊:不断演进的云原生给我们带来了什么?
- jax-ws和jax-rs_使用JAX-RS和Jetty创建Web服务和Rest Server
- Entity Framework 数据库先行、模型先行、代码先行
- Golang-import-introduce
- Android中通过ActionBar为标题栏添加搜索以及分享视窗
- 点云质量评估_Chamfer Distance--倒角距离
- SpringBoot(九):fastjson、异常处理
- 干货! IT信息资产分类与信息分级管理规定
- 【Windows 8】pid为4的system进程占用80端口的解决办法
- Java流处理之高效读写的缓冲流
- 计算机继续教育笔记,第三轮继续教育自学读书笔记
- matlab has encountered,matlab运行程序时出现“matlab has encountered an internal problem
- Xenu's Link Sleuth 的使用
- Steaming技术初体验
- 智能家居(Domoticz)怎么能少了天气预报
- 淘宝十年资深架构师吐血总结淘宝的数据库架构设计和采用的技术手段。
- 【1】数据可视化:基于 Echarts + Python 实现的动态实时大屏 - 互联网企业数据