Loading... 1.生成证书 keytool -genkey -alias ncedu -keyalg RSA -keystore d:/ncedu Warning: JKS 密钥库使用专用格式。建议使用 "keytool -importkeystore -srckeystore d:/ncedu -destkeystore d:/ncedu -deststoretype pkcs12" 迁移到行业标准格式 PKCS12。 2.导出证书 D:Soft>keytool -export -trustcacerts -alias ncedu -file d:/ncedu.cer -keystore d:/ncedu 3.导入JDK信任库 keytool -import -trustcacerts -alias ncedu -file d:/ncedu.cer -keystore "D:Javajre1.8.0_162libsecuritycacerts" 输入密码:changeit 经自己测试发现,Springboot使用需要运行: keytool -importkeystore -srckeystore d:/ncedu -destkeystore d:/ncedu -deststoretype pkcs12 Last modification:April 10, 2018 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 0 如果觉得我的文章对你有用,请随意赞赏