Ben gömülü tomcat 9.0.26 ile bahar önyükleme 2.2.0 SSL kullanmaya çalışıyorum ama tomcat JKS dosya akışı kapalı yükleyemezsiniz.
İşte uygulama özellikleri:
server.port=443
server.ssl.key-store-type=JKS
server.ssl.key-store=C:\\Keystore\\mykey.jks
server.ssl.key-store-password=cccc
server.ssl.key-alias=*.mydomain.com
İstisna:
org.springframework.boot.web.server.WebServerException: Katıştırılmış Tomcat sunucusu org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start (TomcatWebServer.java:215) ~ [spring-boot-2.2.0 konumunda başlatılamıyor .BUILD-SNAPSHOT.jar! /: 2.2.0.BUILD-SNAPSHOT] org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.startWebServer (ServletWebServerApplicationContext.java:297) ~ [bahar-boot-2.2.0. BUILD-SNAPSHOT.jar! /: 2.2.0.BUILD-SNAPSHOT] org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh (ServletWebServerApplicationContext.java:163) ~ [spring-boot-2.2.0.BUILD -SNAPSHOT.jar! /: 2.2.0.BUILD-SNAPSHOT] org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:553) ~ [bahar-içerik-5.2.0.RELEASE.jar! /: 5.2.0.RELEASE] org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh (ServletWebServerApplicationContext.java:141) ~ [bahar-önyükleme-2.2.0.BUILD-SNAPSHOT.jar! / : 2.2.0.BUILD-SNAPSHOT] org.springframework.boot.SpringApplication.refresh (SpringApplication.java:747) ~ [bahar-boot-2.2.0.BUILD-SNAPSHOT.jar! /: 2.2.0.BUILD- SNAPSHOT] org.springframework.boot.SpringApplication.refreshContext (SpringApplication.java:397) ~ [bahar-önyükleme-2.2.0.BUILD-SNAPSHOT.jar! /: 2.2.0.BUILD-SNAPSHOT] org.springframework. org.springframework.boot.SpringApplication.run (SpringApplication) adresinde boot.SpringApplication.run (SpringApplication.java:315) ~ [spring-boot-2.2.0.BUILD-SNAPSHOT.jar! /: 2.2.0.BUILD-SNAPSHOT] .java: 1226) ~ [ilkbahar-botu-2.2.0.BUILD-SNAPSHOT.jar!BUILD-SNAPSHOT] org.springframework.boot.SpringApplication.run adresinde (SpringApplication.java:1215) ~ [spring-boot-2.2.0.BUILD-SNAPSHOT.jar! /: 2.2.0.BUILD-SNAPSHOT] eu. java.base / jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Yerel Yöntem) ~ [na: na] 'da soluma.app.SolumaTdvApplication.main (SolumaTdvApplication.java:34) ~ [sınıflar! /: 0.0.1-SNAPSHOT] java.base / jdk.internal.reflect.NativeMethodAccessorImpl.invoke adresinde (NativeMethodAccessorImpl.java:62) ~ [na: na], java.base / jdk.internal.reflect.DelegatingMethodAccessorImpl.hodAccessorImpl.AvcessorImpl.AvcessorImpl.vv.. na: na], java.base / java.lang.reflect.Method.invoke'da (Method.java:567) ~ [na: org.springframework.boot.loader.MainMethodRunner.run'da (MainMethodRunner.java:48) ~ [SolumaTDV-0.0.1-SNAPSHOT.jar: 0.0.1-SNAPSHOT] org.springframework.boot.loader.Launcher.launch (Launcher.java:87) ~ [SolumaTDV-0.0.1-SNAPSHOT.jar: 0.0.1-SNAPSHOT] org.springframework.boot.loader'da. Launcher.launch (Launcher.java:51) ~ [SolumaTDV-0.0.1-SNAPSHOT.jar: 0.0.1-SNAPSHOT] org.springframework.boot.loader.JarLauncher.main (JarLauncher.java:52) ~ [SolumaTDV -0.0.1-SNAPSHOT.jar: 0.0.1-SNAPSHOT] Neden: java.lang.IllegalArgumentException: standardService.connector.startOrg.apache.catalina.core.StandardService.addConnector (StandardService.java:231) adresinde dolduruldu ~ [ tomcat-embed-core-9.0.26.jar! /: 9.0.26] org.springframework.boot.web.embedded.tomcat.TomcatWebServer.addPreviouslyRemovedConnectors (TomcatWebServer.java:278) ~ [ilkbahar-önyükleme-2.2.0 .BUILD-SNAPSHOT.jar! /: 2.2.0.BUILD-SNAPSHOT] org.springframework.boot'ta.web.embedded.tomcat.TomcatWebServer.start (TomcatWebServer.java:197) ~ [spring-boot-2.2.0.BUILD-SNAPSHOT.jar! /: 2.2.0.BUILD-SNAPSHOT] ... 18 ortak çerçeve atlandı Neden yazan: org.apache.catalina.LifecycleException: Protokol işleyicisi org.apache.catalina.connector.Connector.startInternal (Connector.java:1008) ~ [tomcat-embed-core-9.0.26.jar! /: 9.0 konumunda başarısız oldu .26] org.apache.catalina.util.LifecycleBase.start adresinde (LifecycleBase.java:183) ~ [tomcat-embed-core-9.0.26.jar! /: 9.0.26] org.apache.catalina.core'da .StandardService.addConnector (StandardService.java:227) ~ [tomcat-embed-core-9.0.26.jar! /: 9.0.26] ... 20 ortak çerçeve atlandı Neden: java.lang.IllegalArgumentException: Akış şu saatte kapalı: org.apache.tomcat.util.net.AbstractJsseEndpoint.createSSLContext (AbstractJsseEndpoint.java:99) ~ [tomcat-embed-core-9.0.26.jar! /: 9.0.26] org.apache.tomcat.util.net.AbstractJsseEndpoint.initialiseSsl (AbstractJsseEndpoint.java:71) ~ [tomcat-embed-core -9.0.26.jar! /: 9.0.26] org.apache.tomcat.util.net.NioEndpoint.bind (NioEndpoint.java:218) ~ [tomcat-embed-core-9.0.26.jar! /: 9.0.26] org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup (AbstractEndpoint.java:1124) ~ [tomcat-embed-core-9.0.26.jar! /: 9.0.26] org.apache'de. tomcat.util.net.AbstractEndpoint.start (AbstractEndpoint.java:1210) ~ [tomcat-embed-core-9.0.26.jar! /: 9.0.26] org.apache.coyote.AbstractProtocol.start (AbstractProtocol.java) adresinde : 585) ~ [tomcat-embed-core-9.0.26.jar! /: 9.0.26] org.apache.catalina.connector.Connector.startInternal (Connector.java:1005) ~ [tomcat-embed-core- ! 9.0.26.jar /: 9.0.26] ... 22 ortak kare atlandı Neden: java.io.IOException: Akış java.base / java.io.BufferedInputStream.getBufIfOpen (BufferedInputStream.java:176) adresinde kapatıldı ~ [na: na] java.base / java.base / java.io.BufferedInputStream.fill (BufferedInputStream.java:342) ~ [na: na] java.base / java.io.BufferedInputStream.fill (BufferedInputStream.java:252) ~ [na: na], java.base / java.base / java.security.DigestInputStream.read (BufferedInputStream.java:271) ~ [na: na], java.base / java.security.DigestInputStream.read (DigestInputStream.java:125) ~ [na: na], java.base / java.base / sun.security.provider.JavaKeyStore.engineLoad (JavaKeyStore.java:659) ~ [na: na] 'da java.io.DataInputStream.readInt (DataInputStream.java:392) ~ [na: na]. baz / sun.security.util.KeyStoreDelegator.java.base / java.security.KeyStore.load (KeyStore.java:1472) ~ [na: na] org.apache.tomcat.util.security'de engineLoad (KeyStoreDelegator.java:222) ~ [na: na]. OrS.apache.tomcat.util.net.SSLUtilBase.getStore'da (SSLUtilBase.java:217) KeyStoreUtil.load (KeyStoreUtil.java:69) ~ [tomcat-embed-core-9.0.26.jar! /: 9.0.26] ) ~ [tomcat-embed-core-9.0.26.jar! /: 9.0.26] org.apache.tomcat.util.net.SSLHostConfigCertificate.getCertificateKeystore (SSLHostConfigCertificate.java:206) ~ [tomcat-embed-core- 9.0.26.jar! /: 9.0.26] org.apache.tomcat.util.net.SSLUtilBase.getKeyManagers (SSLUtilBase.java:283) ~ [tomcat-gömülü-çekirdek-9.0.26.jar! /: 9.0 .26] org.apache.tomcat.util.net.SSLUtilBase.createSSLContext'de (SSLUtilBase.java:247) ~ [tomcat-embed-core-9.0.26.jar! /: 9.0.26] org.apache.tomcat şirketinde .util.net.AbstractJsseEndpoint.createSSLContext (AbstractJsseEndpoint.java:97) ~ [tomcat-embed-core-9.0.26.jar! /: 9.0.26] ... 28 ortak çerçeve atlandı
file:
mi?
server.ssl.key-store="C:\Keystore\mykey.jks"