java异常标记_如何修复'java.io.IOException异常:toDerInputStream在上启动spring应用程序时拒绝标记类型60'本地主机:8443...

我们正在使用Java8和springframework开发一个web应用程序。

这个很好用。

现在我们想添加一个新的环境(开发)。

“Development”的配置与“Test”完全相同。

唯一的区别是稍微改变了url。

我们仍然无法启动可运行的jar。

上面写着:

org.apache.catalina.LifecycleException: Failed to start component [Connector[HTTP/1.1-8443]]

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)

at org.apache.catalina.core.StandardService.addConnector(StandardService.java:225)

at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.addPreviouslyRemovedConnectors(TomcatWebServer.java:261)

at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start(TomcatWebServer.java:198)

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.startWebServer(ServletWebServerApplicationContext.java:300)

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:162)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)

at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140)

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)

at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:386)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:1242)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:1230)

at com.sixt.testautomation.tdm.core.CoreApplication.main(CoreApplication.java:21)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)

at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)

at org.springframework.boot.loader.Launcher.launch(Launcher.java:50)

at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51)

Caused by: org.apache.catalina.LifecycleException: Protocol handler start failed

at org.apache.catalina.connector.Connector.startInternal(Connector.java:1020)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

... 21 common frames omitted

Caused by: java.lang.IllegalArgumentException: toDerInputStream rejects tag type 60

at org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:115)

at org.apache.tomcat.util.net.AbstractJsseEndpoint.initialiseSsl(AbstractJsseEndpoint.java:86)

at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:244)

at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:1151)

at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:591)

at org.apache.catalina.connector.Connector.startInternal(Connector.java:1018)

... 22 common frames omitted

Caused by: java.io.IOException: toDerInputStream rejects tag type 60

at sun.security.util.DerValue.toDerInputStream(DerValue.java:881)

at sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1939)

at java.security.KeyStore.load(KeyStore.java:1445)

at org.apache.tomcat.util.net.SSLUtilBase.getStore(SSLUtilBase.java:159)

at org.apache.tomcat.util.net.SSLHostConfigCertificate.getCertificateKeystore(SSLHostConfigCertificate.java:204)

at org.apache.tomcat.util.net.jsse.JSSEUtil.getKeyManagers(JSSEUtil.java:184)

at org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:113)

... 27 common frames omitted

密钥库已就位,并且与测试密钥库相同。代码库和运行脚本是相同的。

我试图查找“tagtype60”,但我找不到任何文档,也不允许有相关问题的人。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值