首页 > 其他 > 详细

项目添加SSH证书时报Private key must be accompanied by certificate chain

时间:2020-08-16 23:04:57      阅读:267      评论:0      收藏:0      [点我收藏+]

现象描述:项目是使用springboot搭建,然后在阿里云上申请了一个免费的SSH证书,按照教程配置后,启动报如下的错误信息:

Caused by: java.lang.IllegalArgumentException: Private key must be accompanied by certificate chain
at java.security.KeyStore.setKeyEntry(KeyStore.java:1136) ~[na:1.8.0_181]
at org.apache.tomcat.util.net.SSLUtilBase.getKeyManagers(SSLUtilBase.java:357) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
at org.apache.tomcat.util.net.SSLUtilBase.createSSLContext(SSLUtilBase.java:247) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
at org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:97) ~[tomcat-embed-core-9.0.33.jar:9.0.33]
... 25 common frames omitted

springboot配置如下

 

 

技术分享图片

 

 

后来查资料,是因为配置的关键子写错了 。截图中红框部分应该为:server.ssl.key-store-password

 

项目添加SSH证书时报Private key must be accompanied by certificate chain

原文:https://www.cnblogs.com/longshun/p/13514765.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!